@@ -58,6 +58,7 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
58
58
COMPANY = "PythonEmbed"
59
59
TARGETW = None
60
60
ALIAS_PREFIX = None
61
+ ALIAS_WPREFIX = None
61
62
DISPLAY_TAGS .append ("embeddable" )
62
63
# Deliberately name the file differently from the existing distro
63
64
# so we can republish old versions without replacing files.
@@ -126,23 +127,24 @@ def calculate_install_json(ns, *, for_embed=False, for_test=False):
126
127
# Generate alias entries for each target. We need both arch and non-arch
127
128
# versions as well as windowed/non-windowed versions to make sure that all
128
129
# necessary aliases are created.
129
- if ALIAS_PREFIX :
130
- for prefix , base in [
131
- (ALIAS_PREFIX , {"target" : TARGET }),
132
- (f"{ ALIAS_PREFIX } w" , {"target" : TARGETW , "windowed" : 1 }),
133
- ]:
134
- if not base ["target" ]:
135
- continue
136
- if XY_TAG :
137
- STD_ALIAS .extend ([
138
- {** base , "name" : f"{ prefix } { XY_TAG } .exe" },
139
- {** base , "name" : f"{ prefix } { XY_ARCH_TAG } .exe" },
140
- ])
141
- if X_TAG :
142
- STD_ALIAS .extend ([
143
- {** base , "name" : f"{ prefix } { X_TAG } .exe" },
144
- {** base , "name" : f"{ prefix } { X_ARCH_TAG } .exe" },
145
- ])
130
+ for prefix , base in (
131
+ (ALIAS_PREFIX , {"target" : TARGET }),
132
+ (ALIAS_WPREFIX , {"target" : TARGETW , "windowed" : 1 }),
133
+ ):
134
+ if not prefix :
135
+ continue
136
+ if not base ["target" ]:
137
+ continue
138
+ if XY_TAG :
139
+ STD_ALIAS .extend ([
140
+ {** base , "name" : f"{ prefix } { XY_TAG } .exe" },
141
+ {** base , "name" : f"{ prefix } { XY_ARCH_TAG } .exe" },
142
+ ])
143
+ if X_TAG :
144
+ STD_ALIAS .extend ([
145
+ {** base , "name" : f"{ prefix } { X_TAG } .exe" },
146
+ {** base , "name" : f"{ prefix } { X_ARCH_TAG } .exe" },
147
+ ])
146
148
147
149
STD_PEP514 .append ({
148
150
"kind" : "pep514" ,
0 commit comments