- Notifications
You must be signed in to change notification settings - Fork11
The Python Install Manager (for Windows)
License
python/pymanager
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the source code for the Python Install Manager app.
For information about how to use the Python install manager,including troubleshooting steps,please refer to the documentation atdocs.python.org/using/windows.
The original PEP leading to this tool wasPEP 773.
To build and run locally requirespymsbuild
and a Visual Studio installation that includes the C/C++ compilers.
> python -m pip install pymsbuild> python -m pymsbuild> python-manager\py.exe ...
Any modification to a source file requires rebuilding.The.py
files are packaged into an extension module.However, see the following section on tests, as test runs do not require a fullbuild.
For additional output, set%PYMANAGER_DEBUG%
to force debug-level output.This is the equivalent of passing-vv
, though it also works for contexts thatdo not accept options (such as launching a runtime).
To run the test suite locally:
> python -m pip install pymsbuild pytest> python -m pymsbuild -c _msbuild_test.py> python -m pytest
This builds the native components separately so that you can quickly iterate onthe Python code. Any updates to the C++ files will require running thepymsbuild
step again.
To produce an (almost) installer app package:
> python -m pip install pymsbuild> python make-all.py
This will rebuild the project and produce MSIX, APPXSYM and MSI packages.
You will need to sign the MSIX package before you can install it. This can be aself-signed certificate, but it must be added to your Trusted Publishers.Alternatively, rename the file to.zip
and extract it to a directory, andrunAdd-AppxPackage -Register <path to dir>\appxmanifest.xml
to do adevelopment install. This should add the global aliases and allow you to testas if it was properly installed.
Contributions are welcome under all the same conditions as for CPython.
As this project is currently considered to be in prerelease stage,the release schedule is "as needed".
The release manager for the Python Install Manager on Windows is whoever is thebuild manager for Windows for CPython.
PyManager uses the two digit year as the first part of the version,with the second part incrementing for each release.This is to avoid any sense of features being tied to the version number,and to avoid any direct association with Python releases.
The two digit year is used because MSI does not support major version fieldsover 256. If/when we completely drop the MSI, we could switch to four digityears, but as long as it exists we have to handle its compatibility constraints.
Copyright © 2025 Python Software Foundation. All rights reserved.
See theLICENSE forinformation on the terms & conditions for usage, and a DISCLAIMER OF ALLWARRANTIES.
All trademarks referenced herein are property of their respective holders.
About
The Python Install Manager (for Windows)
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.