This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/packages/pypi/Makefile

21 lines
404 B
Makefile

# 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/*
clean:
rm -rf *.a
rm -rf build
rm -rf dist
rm -rf libzt.egg-info