cChardet/Makefile
PyYoshi 28c56f0597 install requirements-dev.txt on manylinux1
(cherry picked from commit 752e783884c4b0f7e6eac1d0aed47f8c60cbdb7f)
2018-01-10 01:11:36 +09:00

35 lines
976 B
Makefile

test:
python setup.py nosetests
clean:
$(RM) -r build dist src/cchardet/__pycache__ src/cchardet/*.cpp src/cchardet/*.pyc src/cchardet/*.so src/cchardet.egg-info src/tests/__pycache__ src/tests/*.pyc
sdist:
python setup.py sdist --formats=gztar
pip:
pip install -r requirements-dev.txt
twine:
twine upload dist/cchardet-*.whl dist/cchardet-*.tar.gz
install: clean
python setup.py install
build-manylinux1-wheel:
docker pull quay.io/pypa/manylinux1_i686
docker pull quay.io/pypa/manylinux1_x86_64
docker run --rm -ti -v `pwd`:/project \
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
-e LDFLAGS="$(LDFLAGS) -flto" \
-w /project \
quay.io/pypa/manylinux1_i686 \
bash dockerfiles/buildwheel.sh
docker run --rm -ti -v `pwd`:/project \
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
-e LDFLAGS="$(LDFLAGS) -flto" \
-w /project \
quay.io/pypa/manylinux1_x86_64 \
bash dockerfiles/buildwheel.sh
build: clean pip test sdist build-manylinux1-wheel