Skip to content

Commit

Permalink
add build-wheels.sh; release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Beyeler committed May 20, 2018
1 parent 7333062 commit aa4dd88
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
22 changes: 22 additions & 0 deletions 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
5 changes: 3 additions & 2 deletions pulse2percept/version.py
Expand Up @@ -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

Expand All @@ -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",
Expand Down Expand Up @@ -77,3 +77,4 @@
MICRO = _version_micro
VERSION = __version__
PACKAGE_DATA = {}
REQUIRES = ["numpy", "scipy", "joblib", "scikit_image", "sk_video", "cython"]
7 changes: 0 additions & 7 deletions setup.py
Expand Up @@ -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,
Expand Down

0 comments on commit aa4dd88

Please sign in to comment.