Skip to content

Conversation

@ader1990
Copy link
Member

@ader1990 ader1990 commented Dec 5, 2025

If MSI checksum is set, then the builder will download the Python installer, install Python at a temp location, then move the folder to the known location. At the end, the Python package will be uninstalled.

If MSI checksum is set, then the builder will download the Python installer,
install Python at a temp location, then move the folder to the known
location. At the end, the Python package will be uninstalled.

Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
[string]$VSRedistDir = "${ENV:ProgramFiles(x86)}\Common Files\Merge Modules",
[string]$SignTimestampUrl = "http://timestamp.digicert.com?alg=sha256"
[string]$SignTimestampUrl = "http://timestamp.digicert.com?alg=sha256",
[string]$PythonMsiChecksum = $null
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is worth adding a boolean flag?

throw "$python_template_dir folder already exists"
}

$pythonInstallerPath = Join-Path (Resolve-Path "${python_template_dir}/..").Path "/python-${pythonVersion}${platformSuffix}.exe"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use parent path instead of ..

if ($PythonMsiChecksum) {
DownloadInstall-PythonMsi $platform $python_template_dir $pythonversion $PythonMsiChecksum
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the MSI build is done, the python_template_dir can be cleaned up as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant