Skip to content

Commit 6205359

Browse files
compnerdcharles-zablit
authored andcommitted
WiX: clean up the python packaging
Restructure the python installation to mimic the Unix style layout that we use throughout the components. Specifically, migrate the .exe and .dll files into a `/usr/bin` subdirectory under the installation and move the license into the package itself.
1 parent d2d01d9 commit 6205359

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

platforms/Windows/python/python.wxs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@
2121
<FeatureGroupRef Id="SideBySideUpgradeStrategy" />
2222

2323
<DirectoryRef Id="INSTALLROOT">
24-
<Directory Id="python" Name="Python-$(PythonVersion)" />
24+
<Directory Id="python" Name="Python-$(PythonVersion)">
25+
<Directory Id="_usr" Name="usr">
26+
<Directory Id="_usr_bin" Name="bin" />
27+
<Directory Id="_usr_share" Name="share">
28+
<Directory Id="_usr_share_licenses" Name="licenses" />
29+
</Directory>
30+
</Directoctory>
2531
</DirectoryRef>
2632

27-
<ComponentGroup Id="EmbeddedPython" Directory="python">
33+
<ComponentGroup Id="EmbeddedPython" Directory="_usr_bin">
2834
<Component>
2935
<File Source="$(PythonRoot)\libcrypto-1_1$(ArchSuffix).dll" />
3036
</Component>
@@ -124,17 +130,14 @@
124130
<Component>
125131
<File Source="$(PythonRoot)\_zoneinfo.pyd" />
126132
</Component>
127-
</ComponentGroup>
128133

129-
<ComponentGroup Id="EmbeddedPythonLicense">
130134
<Component Directory="_usr_share_licenses">
131-
<File Source="$(PythonRoot)\LICENSE.txt" />
135+
<File Name="python.txt" Source="$(PythonRoot)\LICENSE.txt" />
132136
</Component>
133137
</ComponentGroup>
134138

135139
<Feature Id="EmbeddedPython" AllowAbsent="no" Title="$(VariantProductName)">
136140
<ComponentGroupRef Id="EmbeddedPython" />
137-
<ComponentGroupRef Id="EmbeddedPythonLicense" />
138141
</Feature>
139142
</Package>
140-
</Wix>
143+
</Wix>

platforms/Windows/shared/shared.wxs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<Directory Id="_usr_share_docc" Name="docc">
5353
<Directory Id="_usr_share_docc_render" Name="render" />
5454
</Directory>
55-
<Directory Id="_usr_share_licenses" Name="licenses" />
5655
</Directory>
5756
</Directory>
5857
</Directory>

0 commit comments

Comments
 (0)