add python3.9 to pypi

This commit is contained in:
Arne Morten Kvarving 2020-11-25 11:56:54 +01:00
parent 08f8685bd1
commit 62bb1bc196
2 changed files with 8 additions and 8 deletions

View File

@ -5,11 +5,11 @@
VERSION_TAG=${1:-""}
#export PYTHON27=/usr/bin/python2.7
export PYTHON35=/opt/python/cp35-cp35m/bin/python
export PYTHON36=/opt/python/cp36-cp36m/bin/python
export PYTHON37=/opt/python/cp37-cp37m/bin/python
export PYTHON38=/opt/python/cp38-cp38/bin/python
export PYTHON39=/opt/python/cp39-cp39/bin/python
/bin/bash /tmp/opm-common/python/setup-docker-image.sh
@ -26,7 +26,7 @@ cmake3 -DPYTHON_EXECUTABLE=${PYTHON35} -DBOOST_INCLUDEDIR=/usr/include/boost169
-DOPM_ENABLE_PYTHON=ON -DOPM_PYTHON_PACKAGE_VERSION_TAG=${VERSION_TAG} ..
# make step is necessary until the generated ParserKeywords/*.hpp are generated in the Python step
make -j2
make -j4
./setup-package.sh
${PYTHON35} -m auditwheel repair python/dist/*cp35*.whl
@ -47,11 +47,10 @@ cmake3 -DPYTHON_EXECUTABLE=${PYTHON38} -DBOOST_INCLUDEDIR=/usr/include/boost169
./setup-package.sh
${PYTHON38} -m auditwheel repair python/dist/*cp38*.whl
#cmake3 -DPYTHON_EXECUTABLE=${PYTHON27} -DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169 \
#-DOPM_ENABLE_PYTHON=ON -DOPM_ENABLE_DYNAMIC_BOOST=OFF -DOPM_ENABLE_DYNAMIC_PYTHON_LINKING=OFF ..
#./setup-package.sh
#${PYTHON27} -m auditwheel repair python/dist/*cp27*.whl
cmake3 -DPYTHON_EXECUTABLE=${PYTHON39} -DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169 \
-DOPM_ENABLE_PYTHON=ON -DOPM_PYTHON_PACKAGE_VERSION_TAG=${VERSION_TAG} ..
./setup-package.sh
${PYTHON39} -m auditwheel repair python/dist/*cp39*.whl
# Example of upload
# /usr/bin/python3 -m twine upload --repository testpypi wheelhouse/*

View File

@ -21,4 +21,5 @@ ${PYTHON37} -m pip install pip --upgrade
${PYTHON37} -m pip install wheel setuptools twine pytest-runner auditwheel
${PYTHON38} -m pip install pip --upgrade
${PYTHON38} -m pip install wheel setuptools twine pytest-runner auditwheel
${PYTHON39} -m pip install pip --upgrade
${PYTHON39} -m pip install wheel setuptools twine pytest-runner auditwheel