msgpack-python/Makefile

34 lines
739 B
Makefile
Raw Normal View History

2018-01-09 20:48:45 +09:00
.PHONY: all
2013-02-26 09:20:44 +09:00
all: cython
2010-03-31 17:09:00 +09:00
python setup.py build_ext -i -f
2009-06-29 11:21:28 +09:00
2018-01-09 20:48:45 +09:00
.PHONY: cython
2013-02-26 09:20:44 +09:00
cython:
cython --cplus msgpack/_msgpack.pyx
2013-02-26 09:20:44 +09:00
2018-01-09 20:48:45 +09:00
.PHONY: test
2009-06-29 11:21:28 +09:00
test:
pytest -v test
MSGPACK_PUREPYTHON=1 pytest -v test
2018-01-09 20:48:45 +09:00
.PHONY: serve-doc
serve-doc: all
cd docs && make serve
.PHONY: clean
clean:
rm -rf build
rm -f msgpack/_msgpack.cpp
rm -rf msgpack/__pycache__
2018-01-09 20:48:45 +09:00
rm -rf test/__pycache__
2016-07-30 11:38:00 +09:00
.PHONY: update-docker
update-docker:
docker pull quay.io/pypa/manylinux1_i686
docker pull quay.io/pypa/manylinux1_x86_64
2018-01-09 20:48:45 +09:00
.PHONY: linux-wheel
linux-wheel:
2016-07-30 11:35:26 +09:00
docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_i686 bash docker/buildwheel.sh
docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_x86_64 bash docker/buildwheel.sh