-
Notifications
You must be signed in to change notification settings - Fork 45
[windows] add Python 3.10.1 to the installer #447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,6 +20,7 @@ | |||||
<ProjectReference Include="..\cli\asserts\cli.asserts.wixproj" BindName="cli.asserts" /> | ||||||
<ProjectReference Include="..\dbg\asserts\dbg.asserts.wixproj" BindName="dbg.asserts" /> | ||||||
<ProjectReference Include="..\ide\asserts\ide.asserts.wixproj" BindName="ide.asserts" /> | ||||||
<ProjectReference Include="..\python\asserts\python.wixproj" BindName="python" /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<ProjectReference Include="..\rtl\msi\rtlmsi.wixproj" BindName="rtl" /> | ||||||
</ItemGroup> | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,5 @@ | ||||||
<Project Sdk="WixToolset.Sdk/4.0.5"> | ||||||
<PropertyGroup> | ||||||
<OutputName>python</OutputName> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The msi name should have the variant in it to separate it when we build multiple for each variant
Suggested change
|
||||||
</PropertyGroup> | ||||||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<?define VariantName = asserts ?> | ||
<?define VariantUpgradeCode = $(PythonUpgradeCode)?> | ||
<?define VariantProductName = !(loc.EmbeddedPython_ProductName)?> | ||
<?define VariantCabinetName = python.asserts.cab?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with you, the cabinet name should not have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we install the embedded-python binaries to a variant-specific folder. so this means that each variant will need a copy. the right approach would be to install python to a non-variant-specific folder, e.g. it is own folder. and add it to the path so that lldb would find it. this way we only have one msi. bonus if we change lldb to use an env var or other input to know where the embedded one is instead of using path for the dll and PYTHONPATH for the libraries. |
||
<?define ToolchainVersionedVariantDirectory = ToolchainVersionedAsserts ?> | ||
<?define VariantEnvironmentComponentGUID = 30629e0c-b376-47bc-bedf-fefb7d4ca61d?> | ||
<?if $(ProductArchitecture) = "arm64" ?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not variant specific. i would recommend moving it to the wxi to avoid it being duplicated for diffrent variants. |
||
<?define ArchSuffix = "-arm64" ?> | ||
<?else?> | ||
<?define ArchSuffix = "" ?> | ||
<?endif?> | ||
<?include ../python.wxi ?> | ||
</Wix> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
|
||
<Package | ||
Language="1033" | ||
Manufacturer="!(loc.ManufacturerName)" | ||
Name="$(VariantProductName)" | ||
UpgradeCode="$(VariantUpgradeCode)" | ||
Version="$(NonSemVerProductVersion)" | ||
Scope="$(PackageScope)"> | ||
|
||
<Media Id="1" Cabinet="$(VariantCabinetName)" EmbedCab="$(ArePackageCabsEmbedded)" /> | ||
|
||
<WixVariable Id="SideBySidePackageUpgradeCode" Value="$(VariantUpgradeCode)" /> | ||
<FeatureGroupRef Id="SideBySideUpgradeStrategy" /> | ||
|
||
<ComponentGroup Id="EmbeddedPython" Directory="toolchain_$(VariantName)_usr_bin"> | ||
<Component > | ||
<File Source="$(PythonRoot)\libcrypto-1_1$(ArchSuffix).dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\libffi-7.dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\libssl-1_1$(ArchSuffix).dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\pyexpat.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python.cat" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python.exe" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python3.dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python310.dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python310.zip" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\python310._pth" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\pythonw.exe" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\select.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\sqlite3.dll" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\unicodedata.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\winsound.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_asyncio.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_bz2.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_ctypes.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_decimal.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_elementtree.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_hashlib.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_lzma.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_msi.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_multiprocessing.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_overlapped.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_queue.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_socket.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_sqlite3.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_ssl.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_uuid.pyd" /> | ||
</Component> | ||
|
||
<Component> | ||
<File Source="$(PythonRoot)\_zoneinfo.pyd" /> | ||
</Component> | ||
</ComponentGroup> | ||
|
||
<ComponentGroup Id="EmbeddedPythonLicense"> | ||
<Component Directory="toolchain_$(VariantName)_usr_share_licenses"> | ||
<File Source="$(PythonRoot)\LICENSE.txt" /> | ||
</Component> | ||
</ComponentGroup> | ||
|
||
<Feature Id="EmbeddedPython" AllowAbsent="no" Title="$(VariantProductName)"> | ||
<ComponentGroupRef Id="EmbeddedPython" /> | ||
<ComponentGroupRef Id="EmbeddedPythonLicense" /> | ||
</Feature> | ||
</Package> | ||
</Include> |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,6 +8,7 @@ | |||||
<String Id="CliAsserts_ProductName" Value="Swift Command Line Tools (Asserts)" /> | ||||||
<String Id="Dbg_ProductName" Value="Swift Debugging Tools" /> | ||||||
<String Id="DbgAsserts_ProductName" Value="Swift Debugging Tools (Asserts)" /> | ||||||
<String Id="EmbeddedPython_ProductName" Value="Embedded Python 3.10.1" /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is variant specific msi, we should have the name reflect that.
Suggested change
|
||||||
<String Id="Ide_ProductName" Value="Swift IDE Integration Tools" /> | ||||||
<String Id="IdeAsserts_ProductName" Value="Swift IDE Integration Tools (Asserts)" /> | ||||||
<String Id="Rtl_ProductName" Value="Swift Windows Runtime" /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name should have variant to allow us to add another one later on.
PythonAssertsUpgradeCode