improve pypi build.sh and add distribute.sh

This commit is contained in:
2020-11-05 14:18:54 +01:00
parent 7ac750220d
commit b2f0758931
2 changed files with 24 additions and 5 deletions

View File

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