mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
AppVeyor - Fix errors in Windows installer Python
The errors were introduced by #4820
This commit is contained in:
@@ -63,7 +63,7 @@ init:
|
||||
- cmd: call c:\"Program Files"\"Microsoft Visual Studio"\2022\Community\VC\Auxiliary\Build\vcvarsall.bat amd64
|
||||
# Setup NSIS
|
||||
- cmd: set PATH=%PATH%;C:\"Program Files (x86)"\NSIS
|
||||
# Setup Python for building
|
||||
# Setup Python
|
||||
- cmd: set PATH=C:\Python311-x64\Scripts\;C:\Python311-x64\;%PATH%
|
||||
- cmd: python --version
|
||||
# Setup JOM
|
||||
|
||||
@@ -31,14 +31,15 @@ if (-not (Test-Path 'C:\Python')) {
|
||||
$pyurl = "https://www.python.org/ftp/python/$PYTHON_EMBED_VERSION/python-$PYTHON_EMBED_VERSION-embed-amd64.zip"
|
||||
Start-FileDownload $pyurl "python-embed.zip"
|
||||
Expand-Archive -Path python-embed.zip -DestinationPath C:\Python -Force
|
||||
# Enable site import
|
||||
mkdir C:\Python\lib\site-packages
|
||||
# Enable pip in embedded Python
|
||||
$py_ver = $env:PYTHON_VERSION -replace '.', ''
|
||||
$py_ver = $($env:PYTHON_VERSION -replace '\.', '')
|
||||
(Get-Content C:\Python\python$py_ver._pth) -replace '#import site', 'import site' | Set-Content C:\Python\python$py_ver._pth
|
||||
# Enable pip in embedded Python
|
||||
Start-FileDownload "https://bootstrap.pypa.io/get-pip.py" "get-pip.py"
|
||||
C:\Python\python.exe get-pip.py --no-warn-script-location
|
||||
# Upgrade pip to ensure you have the latest version
|
||||
python -m pip install --upgrade pip
|
||||
C:\Python\python -m pip install --upgrade pip
|
||||
# Install your project's dependencies from a requirements.txt file
|
||||
python -m pip install --only-binary:all: -r src\Python\requirements.txt -t C:\Python\lib\site-packages
|
||||
C:\Python\python -m pip install --upgrade --only-binary :all: -r src\Python\requirements.txt -t C:\Python\lib\site-packages
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user