Minor fixes to PyPI package build procedure. Stubbed out a more pythonic API

This commit is contained in:
Joseph Henry
2018-02-21 18:19:00 -08:00
parent 50cd2499b7
commit 2faacca8c9
7 changed files with 395 additions and 315 deletions

View File

@@ -1,9 +1,15 @@
# generate a new wrapper *.cxx from the *.i interface file
wrapper:
swig -c++ -python libzt.i
# build and package a binary distribution
bdist:
cd ../../; cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=DEBUG
cd ../../; cmake --build build
cp ../../bin/lib/*.a .
python3 setup.py bdist_wheel
# upload to PyPI
upload:
twine upload dist/*