mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-132930: Fix use of ALIAS_WPREFIX in pymanager builds (GH-133120)
This commit is contained in:
parent
4d54e9cdf6
commit
208d06fd51
1 changed files with 19 additions and 17 deletions
|
@ -58,6 +58,7 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
|
|||
COMPANY = "PythonEmbed"
|
||||
TARGETW = None
|
||||
ALIAS_PREFIX = None
|
||||
ALIAS_WPREFIX = None
|
||||
DISPLAY_TAGS.append("embeddable")
|
||||
# Deliberately name the file differently from the existing distro
|
||||
# so we can republish old versions without replacing files.
|
||||
|
@ -126,11 +127,12 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
|
|||
# Generate alias entries for each target. We need both arch and non-arch
|
||||
# versions as well as windowed/non-windowed versions to make sure that all
|
||||
# necessary aliases are created.
|
||||
if ALIAS_PREFIX:
|
||||
for prefix, base in [
|
||||
for prefix, base in (
|
||||
(ALIAS_PREFIX, {"target": TARGET}),
|
||||
(f"{ALIAS_PREFIX}w", {"target": TARGETW, "windowed": 1}),
|
||||
]:
|
||||
(ALIAS_WPREFIX, {"target": TARGETW, "windowed": 1}),
|
||||
):
|
||||
if not prefix:
|
||||
continue
|
||||
if not base["target"]:
|
||||
continue
|
||||
if XY_TAG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue