AppVeyor - Don't rebuild SIP each time

This commit is contained in:
Alejandro Martinez
2025-05-06 10:19:04 -03:00
parent 977201243f
commit df80ff1cc7
3 changed files with 28 additions and 17 deletions

View File

@@ -84,7 +84,7 @@ init:
cache:
- gc-ci-libs.zip -> appveyor.yml
- jom_1_1_3.zip
- sip-4.19.8.zip
- sip-4.19.8 -> appveyor.yml
- C:\R
- C:\Python -> src\Python\requirements.txt
- c:\tools\vcpkg\installed\
@@ -136,14 +136,17 @@ install:
}
# Get SIP and and install on Python
- cmd: c:\python37-x64\python --version
- cmd: if not exist sip-4.19.8.zip appveyor DownloadFile "https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.zip"
- cmd: 7z x sip-4.19.8.zip
- cmd: cd sip-4.19.8
- cmd: c:\python37-x64\python configure.py
- cmd: jom -j4
- cmd: nmake install
- cmd: cd ..
- ps: >-
if ($isWindows -And -not (Test-Path 'sip-4.19.8')) {
Start-FileDownload "https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.zip"
7z x sip-4.19.8.zip
cd sip-4.19.8
c:\python37-x64\python --version
c:\python37-x64\python configure.py
jom -j2
cd ..
}
- cmd: cd sip-4.19.8 & nmake install & cd ..
# Add Python (avoiding collision between GC Context.h and Python context.h)
- cmd: echo DEFINES+=GC_WANT_PYTHON >> src\gcconfig.pri

View File

@@ -46,11 +46,15 @@ sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update -qq
sudo apt-get install -qq python3.7-dev python3.7-distutils
python3.7 --version
wget --no-verbose https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz
tar xf sip-4.19.8.tar.gz
if [ -z "$(ls -A sip-4.19.8)" ]; then
wget --no-verbose https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz
tar xf sip-4.19.8.tar.gz
cd sip-4.19.8
python3.7 configure.py --incdir=/usr/include/python3.7
make -j2
cd ..
fi
cd sip-4.19.8
python3.7 configure.py --incdir=/usr/include/python3.7
make
sudo make install
cd ..

View File

@@ -58,11 +58,15 @@ if [ -z "$(ls -A site-packages)" ]; then
fi
# Python SIP
curl -k -L -O https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz
tar xf sip-4.19.8.tar.gz
if [ -z "$(ls -A sip-4.19.8)" ]; then
curl -k -L -O https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz
tar xf sip-4.19.8.tar.gz
cd sip-4.19.8
python3.7 configure.py
make -j2
cd ..
fi
cd sip-4.19.8
python3.7 configure.py
make -j4
sudo make install
cd ..