Skip to content

Commit

Permalink
Build with latest numpy on Windows and test with oldest supported numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
kbvw committed Aug 14, 2024
1 parent a825029 commit af837ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 5 additions & 5 deletions ci/win_install_deps.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ pwsh -command "(Get-Content C:\Python310\Lib\distutils\cygwinccompiler.py) -repl
pwsh -command "(Get-Content C:\Python311\Lib\distutils\cygwinccompiler.py) -replace 'msvcr100', 'msvcrt' | Out-File C:\Python311\Lib\distutils\cygwinccompiler.py"

:: install numpy
C:\Python38\python.exe -m pip install numpy==1.17.5 "cython" || goto :error
C:\Python39\python.exe -m pip install numpy==1.19.3 "cython" || goto :error
C:\Python310\python.exe -m pip install numpy==1.21.3 "cython" || goto :error
C:\Python311\python.exe -m pip install numpy==1.23.5 "cython" || goto :error
C:\Python312\python.exe -m pip install numpy==1.26.3 "cython" || goto :error
C:\Python38\python.exe -m pip install numpy cython || goto :error
C:\Python39\python.exe -m pip install numpy cython || goto :error
C:\Python310\python.exe -m pip install numpy cython || goto :error
C:\Python311\python.exe -m pip install numpy cython || goto :error
C:\Python312\python.exe -m pip install numpy cython || goto :error
:: setuptools 70.2 leads to an error
C:\Python312\python.exe -m pip install setuptools==70.1.1 || goto :error

Expand Down
10 changes: 8 additions & 2 deletions ci/win_test_installer.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ echo %NEURONHOME%
:: If so, try again to generate it. No wait required like previous strategies, we rely on testing entropy from this point on.
if not exist association.hoc.out (start /wait /REALTIME %cd%\ci\association.hoc)

:: install oldest supported numpy
C:\Python38\python.exe -m pip install numpy==1.19.5 || goto :error
C:\Python39\python.exe -m pip install numpy==1.19.5 || goto :error
C:\Python310\python.exe -m pip install numpy==1.21.6 || goto :error
C:\Python311\python.exe -m pip install numpy==1.23.5 || goto :error
C:\Python312\python.exe -m pip install numpy==1.26.4 || goto :error

:: test all pythons
C:\Python38\python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
C:\Python39\python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
C:\Python310\python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
C:\Python311\python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
:: install numpy dependency
python -m pip install "numpy"
C:\Python312\python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
:: run also using whatever is system python
python --version
python -c "import neuron; neuron.test(); quit()" || set "errorfound=y"
Expand Down

0 comments on commit af837ba

Please sign in to comment.