-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and publish pydeephaven-ticking wheels (#5290)
Refactors the build process for py-client-ticking to individual tasks, and greatly reduces the amount of disk space needed for the build process. The big change is that pydeephaven (and its transitive dependencies) are not actually needed to build pydeephaven-ticking. This also migrates to the PyPi release to Trusted Publishers, https://docs.pypi.org/trusted-publishers/. Fixes #5288 Fixes #5296
- Loading branch information
1 parent
7cef2be
commit 5307f52
Showing
5 changed files
with
150 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
cd "${PREFIX}/src/py-client-ticking" | ||
source "${PREFIX}/env.sh" | ||
|
||
rm -f ./*.cpp ./*.so | ||
|
||
# Note: using PATH b/c these do not have venv activates | ||
PATH="/opt/python/${PYTHON_TAG}/bin:$PATH" | ||
|
||
MAKEFLAGS="-j${NCPUS}" \ | ||
CFLAGS="-I${DHCPP}/include" \ | ||
LDFLAGS="-L${DHCPP}/lib" \ | ||
DEEPHAVEN_VERSION="${DEEPHAVEN_VERSION}" \ | ||
python setup.py build_ext -i | ||
|
||
DEEPHAVEN_VERSION="${DEEPHAVEN_VERSION}" \ | ||
python setup.py bdist_wheel | ||
|
||
auditwheel repair --wheel-dir /out dist/pydeephaven_ticking*"${PYTHON_TAG}"*.whl |
Oops, something went wrong.