From 28c56f05979f9270f48198bc413e0c5b8b36ddda Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Wed, 10 Jan 2018 01:11:36 +0900 Subject: [PATCH] install requirements-dev.txt on manylinux1 (cherry picked from commit 752e783884c4b0f7e6eac1d0aed47f8c60cbdb7f) --- Makefile | 2 +- dockerfiles/buildwheel.sh | 3 ++- requirements-dev.txt | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 requirements-dev.txt diff --git a/Makefile b/Makefile index 710d451..0d889b6 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ sdist: python setup.py sdist --formats=gztar pip: - pip install -U pip cython tox nose chardet + pip install -r requirements-dev.txt twine: twine upload dist/cchardet-*.whl dist/cchardet-*.tar.gz diff --git a/dockerfiles/buildwheel.sh b/dockerfiles/buildwheel.sh index 1d5365e..78ebd91 100755 --- a/dockerfiles/buildwheel.sh +++ b/dockerfiles/buildwheel.sh @@ -6,6 +6,7 @@ echo "arch=$ARCH" for V in cp36-cp36m cp35-cp35m cp34-cp34m cp27-cp27m cp27-cp27mu; do PYBIN=/opt/python/$V/bin - rm -rf build/ # Avoid lib build by narrow Python is used by wide python + rm -rf build src/cchardet/__pycache__ src/cchardet/*.cpp src/cchardet/*.pyc src/cchardet/*.so src/cchardet.egg-info src/tests/__pycache__ src/tests/*.pyc + $PYBIN/pip install -r requirements-dev.txt $PYBIN/python setup.py bdist_wheel -p manylinux1_${ARCH} done diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..2cc3575 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +chardet==3.0.4 +Cython==0.27.3 +nose==1.3.7 +tox==2.9.1 \ No newline at end of file