Skip to content

Commit 5c1af0d

Browse files
committed
Fixes setup.py
1 parent d5e97da commit 5c1af0d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build-wheels.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ PYTHON_VERSIONS="cp27-cp27m cp35-cp35m"
33

44
echo "Compile wheels"
55
for PYTHON in ${PYTHON_VERSIONS}; do
6-
/opt/python/${PYTHON}/bin/pip install -r /io/wheels-requirements.txt
7-
/opt/python/${PYTHON}/bin/pip wheel /io/ -w /io/wheelhouse/
6+
cd /io
7+
/opt/python/${PYTHON}/bin/pip install -r wheels-requirements.txt
8+
/opt/python/${PYTHON}/bin/pip install -r tests-requirements.txt
9+
/opt/python/${PYTHON}/bin/python setup.py sdist --dist-dir wheelhouse --formats=gztar
10+
/opt/python/${PYTHON}/bin/pip wheel --no-index --no-deps --wheel-dir wheelhouse wheelhouse/*.tar.gz
11+
cd -
812
done
913

1014
echo "Bundle external shared libraries into the wheels"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def build_extension(self, ext):
9090
author_email='sebastien@eustace.io',
9191
url='https://github.com/sdispater/pendulum',
9292
download_url='https://github.com/sdispater/pendulum/archive/%s.tar.gz' % __version__,
93-
packages=['pendulum'],
93+
packages=find_packages(exclude=['tests']),
9494
install_requires=[
9595
'tzlocal',
9696
'pytz',

0 commit comments

Comments
 (0)