From 772677590c83d40cc83886d33ba29c1d367aad8f Mon Sep 17 00:00:00 2001 From: LAVAUX Guilhem Date: Tue, 28 Apr 2020 22:34:49 +0200 Subject: [PATCH] Automate building --- builder/build-wheels.sh | 9 ++++++--- setup.py | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/builder/build-wheels.sh b/builder/build-wheels.sh index 32ecd8b..ffef437 100755 --- a/builder/build-wheels.sh +++ b/builder/build-wheels.sh @@ -3,16 +3,19 @@ set -e -x # Install a system package required by our library #yum install -y atlas-devel -yum install -y cmake3 +yum install -y cmake3 gsl-devel zlib-devel + +ln -fs /usr/bin/cmake3 /usr/bin/cmake -ALL_PYTHON=cp38-cp38 +ALL_PYTHON="cp37-cp37m cp38-cp38" # Compile wheels for pkg in $ALL_PYTHON; do PYBIN=/opt/python/${pkg}/bin # "${PYBIN}/pip" install -r /io/dev-requirements.txt - "${PYBIN}/pip" wheel -v /io/ -w wheelhouse/ + "${PYBIN}/pip" install -r /io/requirements.txt + "${PYBIN}/pip" wheel -vvv /io/ -w wheelhouse/ done # Bundle external shared libraries into the wheels diff --git a/setup.py b/setup.py index 226be38..90aa9d6 100644 --- a/setup.py +++ b/setup.py @@ -218,10 +218,11 @@ class BuildCMakeExt(build_ext): CosmoTool_extension = CMakeExtension(name="cosmotool") setup(name='cosmotool', - version='1.0.0a4', + version='1.0.0a5', packages=["cosmotool"], package_dir={'cosmotool': 'python/cosmotool'}, - setup_requires=['cython','cffi','numexpr'], + install_requires=['numpy','cffi','numexpr','pyfftw','h5py'], + setup_requires=['cython','cffi','numpy','numexpr'], ext_modules=[CosmoTool_extension], description='A small cosmotool box of useful functions', long_description=open("./README.md", 'r').read(),