Skip to content

Commit

Permalink
Merge pull request #384 from GEMScienceTools/ae-python311
Browse files Browse the repository at this point in the history
Use python3.11 for Powershell script installation of oq and mbtk
  • Loading branch information
vot4anto authored Jan 17, 2024
2 parents 36532dc + 1990503 commit 3c4586c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_version():
'igraph',
# 'GDAL',
],
python_requires='>=3.10,<3.11',
python_requires='>=3.10,<3.12',
author='GEM Foundation',
author_email='hazard@globalquakemodel.org',
maintainer='GEM Foundation',
Expand Down
6 changes: 3 additions & 3 deletions windows/install_oqmbtk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (Test-Path -Path $workDir) {
}
Write-Host "Current Working Directory: $workDir"
Write-Host "Download and Installation of python embeddable package"
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.10.8/python-3.10.8-embed-amd64.zip -OutFile .\python.zip
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.11.7/python-3.11.7-embed-amd64.zip -OutFile .\python.zip
Expand-Archive -Path .\python.zip -DestinationPath .\mbtk -Verbose
Remove-Item .\python.zip
cd $workDir
Expand All @@ -48,13 +48,13 @@ Set-Alias -Name python -Value $Env:PY_HOME\python.exe
Set-Alias -Name pip -Value $Env:PY_PIP\pip.exe
#
python .\get-pip.py
Move-Item .\python310._pth .\python310._pth.old
Move-Item .\python311._pth .\python311._pth.old
#
pip install pytest
Write-Host "clone of the branch $branch for oq-engine and install in developer mode"
git clone --depth=1 https://github.com/gem/oq-engine.git
cd .\oq-engine\
pip install -r .\requirements-py310-win64.txt
pip install -r .\requirements-py311-win64.txt
pip install -e .
cd ..
Write-Host "clone of the branch $branch for oq-mbtk and install in developer mode"
Expand Down

0 comments on commit 3c4586c

Please sign in to comment.