add build.sh to build sdist and bdist_wheel for pypi

This commit is contained in:
2020-11-05 13:45:45 +01:00
parent 0641d78984
commit 7ac750220d

8
distribution/pypi/build.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
script_dir="$(dirname "$(readlink -f -- "$BASH_SOURCE")")"
pkg_dir="$(realpath "${script_dir}/../..")"
setup="$(which python) setup.py"
cd "${pkg_dir}"
${setup} clean
${setup} sdist bdist_wheel