| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -o errexit |
| 4 | set -o pipefail |
| 5 | set -o nounset |
| 6 | |
| 7 | __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 8 | |
| 9 | python -m pip install -r "${__dir}/requirements.txt" |
| 10 | |
| 11 | # Can add --build-number <x> if necessary |
| 12 | python setup.py bdist_wheel --dist-dir dist.linux |
| 13 | |
| 14 | # Note: auditwheel only works with a single file argument - we are relying on finding exactly one wheel |
| 15 | auditwheel \ |
| 16 | repair \ |
| 17 | --exclude libjvm.so \ |
| 18 | --wheel-dir dist/ \ |
| 19 | dist.linux/* |