diff --git a/build-wheels.sh b/build-wheels.sh new file mode 100644 index 00000000..d8afa76c --- /dev/null +++ b/build-wheels.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e -x + +# Install a system package required by our library +# yum install -y atlas-devel + +# Compile wheels +for PYBIN in /opt/python/*/bin; do + "${PYBIN}/pip" install -r /io/requirements.txt + "${PYBIN}/pip" wheel /io/ -w wheelhouse/ +done + +# Bundle external shared libraries into the wheels +for whl in wheelhouse/pulse2percept*.whl; do + auditwheel repair "$whl" -w /io/wheelhouse/ +done + +# Install packages and test +for PYBIN in /opt/python/*/bin/; do + "${PYBIN}/pip" install pulse2percept --no-index -f /io/wheelhouse + #(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo) +done diff --git a/pulse2percept/version.py b/pulse2percept/version.py index b1dda728..4929868c 100644 --- a/pulse2percept/version.py +++ b/pulse2percept/version.py @@ -4,7 +4,7 @@ # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 _version_minor = 4 -_version_micro = '' # use '' for first of series, number for 1 and above +_version_micro = 2 # use '' for first of series, number for 1 and above _version_extra = '' # _version_extra = '' # Uncomment this for full releases @@ -17,7 +17,7 @@ __version__ = '.'.join(map(str, _ver)) -CLASSIFIERS = ["Development Status :: 4 - Alpha", +CLASSIFIERS = ["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", @@ -77,3 +77,4 @@ MICRO = _version_micro VERSION = __version__ PACKAGE_DATA = {} +REQUIRES = ["numpy", "scipy", "joblib", "scikit_image", "sk_video", "cython"] diff --git a/setup.py b/setup.py index 2df565d8..d28c922c 100644 --- a/setup.py +++ b/setup.py @@ -15,13 +15,6 @@ with open(ver_file) as f: exec(f.read()) -REQUIRES = [] -with open('requirements.txt') as f: - l = f.readline()[:-1] - while l: - REQUIRES.append(l) - l = f.readline()[:-1] - opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_email=MAINTAINER_EMAIL,