-
Notifications
You must be signed in to change notification settings - Fork 25
python: add installer option #46
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: master
Are you sure you want to change the base?
Conversation
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 |
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.
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" |
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.
use parent path instead of ..
| if ($PythonMsiChecksum) { | ||
| DownloadInstall-PythonMsi $platform $python_template_dir $pythonversion $PythonMsiChecksum | ||
| } | ||
|
|
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.
After the MSI build is done, the python_template_dir can be cleaned up as well.
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.