Skip to content

Commit 79711a3

Browse files
committed
Add configuration setting to disable entrypoint generation.
Fixes #255
1 parent 802b8e0 commit 79711a3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/manage/aliasutils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ def calculate_aliases(cmd, install, *, _scan=_scan):
289289
if default_alias_w:
290290
yield default_alias_w.replace(name="pythonw", windowed=1)
291291

292+
if not cmd.enable_entrypoints:
293+
return
294+
292295
site_dirs = DEFAULT_SITE_DIRS
293296
for s in install.get("shortcuts", ()):
294297
if s.get("kind") == "site-dirs":

src/manage/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def execute(self):
257257
"disable_shortcut_kinds": (str, config_split_append),
258258
"default_install_tag": (str, None),
259259
"preserve_site_on_upgrade": (config_bool, None),
260+
"enable_entrypoints": (config_bool, None),
260261
},
261262

262263
"first_run": {
@@ -821,6 +822,7 @@ class InstallCommand(BaseCommand):
821822
disable_shortcut_kinds = None
822823
default_install_tag = None
823824
preserve_site_on_upgrade = True
825+
enable_entrypoints = True
824826

825827
def __init__(self, args, root=None):
826828
super().__init__(args, root)

0 commit comments

Comments
 (0)