-
Notifications
You must be signed in to change notification settings - Fork 7
Building Linux Wheels
Erik Welch edited this page Apr 23, 2021
·
4 revisions
# docker run -it -v `pwd`:/io quay.io/pypa/manylinux2010_x86_64 /bin/bash
# docker run -it -v `pwd`:/io quay.io/pypa/manylinux2014_x86_64 /bin/bash
export ORG="GraphBLAS"
export GITHUBNAME="python-suitesparse-graphblas"
export PACKAGENAME="suitesparse_graphblas"
export NAME="suitesparse-graphblas"
export VERSION="4.0.3.0"
export GBVERSION="4.0.3"
cd /home
curl -L https://github.com/DrTimothyAldenDavis/GraphBLAS/archive/v${GBVERSION}.tar.gz > GraphBLAS-${GBVERSION}.tar.gz
tar -zxvf GraphBLAS-${GBVERSION}.tar.gz
cd GraphBLAS-${GBVERSION}
make library VERBOSE=1 JOBS=20 CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release"
make install VERBOSE=1 CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release"
cd /home
curl -L https://github.com/${ORG}/${GITHUBNAME}/archive/${VERSION}.tar.gz > ${GITHUBNAME}-${VERSION}.tar.gz
tar -zxvf ${GITHUBNAME}-${VERSION}.tar.gz
cd ${GITHUBNAME}-${VERSION}
/opt/python/cp37-cp37m/bin/python -m venv ./env37
. env37/bin/activate
pip install -U pip wheel setuptools
pip install cython numpy==1.15.0
python setup.py bdist_wheel
pip install auditwheel
auditwheel repair dist/${PACKAGENAME}-${VERSION}-cp37-cp37m-linux_x86_64.whl
deactivate
/opt/python/cp38-cp38/bin/python -m venv ./env38
. env38/bin/activate
pip install -U pip wheel setuptools
pip install cython numpy==1.15.0
python setup.py bdist_wheel
pip install auditwheel
auditwheel repair dist/${PACKAGENAME}-${VERSION}-cp38-cp38-linux_x86_64.whl
deactivate
/opt/python/cp39-cp39/bin/python -m venv ./env39
. env39/bin/activate
pip install -U pip wheel setuptools
pip install cython numpy==1.16.6
python setup.py bdist_wheel
pip install auditwheel
auditwheel repair dist/${PACKAGENAME}-${VERSION}-cp39-cp39-linux_x86_64.whl
deactivate
cp wheelhouse/* /io/
# Source
/opt/python/cp38-cp38/bin/python -m venv ./env38src
. env38src/bin/activate
pip install -U pip wheel setuptools
pip install cython numpy==1.15.0
python setup.py sdist
deactivate
cp dist/${NAME}-${VERSION}.tar.gz /io/