-
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.
Remove pydeephaven as dependency for building pydeephaven-ticking. Mo…
…ve logic into the entrypoints.
- Loading branch information
1 parent
98bb87f
commit 170ee4c
Showing
3 changed files
with
54 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
cd "${PREFIX}/src/py-client-ticking" | ||
source "${PREFIX}/env.sh" | ||
ORIG_PATH="$PATH" | ||
for spec in ${WHEELS_SET}; do | ||
tag=$(echo "$spec" | cut -d: -f 2) | ||
rm -f ./*.cpp ./*.so | ||
PATH="/opt/python/${tag}/bin:$ORIG_PATH" | ||
pip3 install cython | ||
MAKEFLAGS="-j${NCPUS}" \ | ||
CFLAGS="-I${DHCPP}/include" \ | ||
LDFLAGS="-L${DHCPP}/lib" \ | ||
DEEPHAVEN_VERSION="${DEEPHAVEN_VERSION}" \ | ||
python3 setup.py build_ext -i | ||
DEEPHAVEN_VERSION="${DEEPHAVEN_VERSION}" python3 setup.py bdist_wheel | ||
auditwheel repair --wheel-dir /out dist/pydeephaven_ticking*"${tag}"*.whl | ||
rm -f dist/pydeephaven_ticking*"${tag}"*.whl | ||
done |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
for spec in ${WHEELS_SET}; do | ||
pyver=$(echo "$spec" | cut -d: -f 1) | ||
tag=$(echo "$spec" | cut -d: -f 2) | ||
[ -f /project/pyt-wheels/pydeephaven_ticking*"${tag}"*.whl ] | ||
source "/project/$pyver/bin/activate" | ||
pip install unittest-xml-reporting | ||
pip install /project/dep-wheels/*.whl | ||
pip install /project/pyt-wheels/pydeephaven_ticking*"${tag}"*.whl | ||
python -m xmlrunner discover tests -v -o "/out/report/$pyver" | ||
deactivate | ||
rm -r "/project/$pyver" | ||
done |