-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Update Python 3.x installation flags #786
Description
Tool information
- Tool name: Python 3.x (Debug/Development)
- Add or update? Update/Add
- Desired version: Development, Debug
- Approximate size:
- If this is an add request:
- Brief description of tool: Python is an interpreted, high-level, general-purpose programming language.
- URL for tool's homepage: https://www.python.org/
Area for Triage:
Python, Packages
Question, Bug, or Feature?:
Feature
Virtual environments affected
- Windows Server 2016 R2
- Windows Server 2019
Can this tool be installed during the build?
Uninstall other Python versions or unset/reset PATH without any Python directories.
cmd:
IF NOT EXIST "%GITHUB_WORKSPACE%\Python38-x64-dbg\python.exe" curl --create-dirs -o "%GITHUB_WORKSPACE%\python-for-openage\python-3.8.0-amd64.exe" "https://www.python.org/ftp/python/3.8.0/python-3.8.0-amd64.exe"
%GITHUB_WORKSPACE%\python-for-openage\python-3.8.0-amd64.exe /quiet /uninstall
setup.exe /quiet Include_debug=1 Include_dev=1 Include_lib=1 Include_pip=1 PrependPath=1 CompileAll=1 InstallAllUsers=1 TargetDir=<workspace-dir>\Python38-x64-dbg\
Are you willing to submit a PR?
Yes
LINK : fatal error LNK1104: cannot open file 'python38_d.lib'
We need a Python interpreter that is shipped with libpython and header files.
So basically it could be just working as a replacement for the usual Python installations. (although I'm not sure due to the CompileAll flag that compiles .py into .pyc. Don't know really if they are left as a .py as well or if they are removed and replaced.
Since ever I need to download the Python setup and deinstall with it the same version from the CI just to install with the beforementioned commands. Maybe this could be the chance to finally spare this tasks :-/