This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 645faf532 fix(ci): Use $ROOT/dist for wheel distribution (#2506)
645faf532 is described below
commit 645faf5324c014ddafe316d7f50d9d0763d3c03f
Author: Emre Şafak <[email protected]>
AuthorDate: Sun Aug 24 10:17:06 2025 -0400
fix(ci): Use $ROOT/dist for wheel distribution (#2506)
## Why
The python wheels were not being found.
## What does this PR do?
* Update deploy.sh to use the $ROOT/dist path for storing wheels.
* This change ensures consistent wheel distribution across different
platforms.
* Fixes an issue where wheels were being placed in relative ../dist
directories.
## Related issues
Fixes #2505
---
ci/deploy.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 58648a3fe..cb966b57f 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -81,12 +81,12 @@ build_pyfory() {
echo "MACOS_VERSION: $MACOS_VERSION"
if [[ "$MACOS_VERSION" == "13"* ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.13
- $PYTHON_CMD setup.py bdist_wheel --plat-name macosx_10_13_x86_64
--dist-dir=../dist
+ $PYTHON_CMD setup.py bdist_wheel --plat-name macosx_10_13_x86_64
--dist-dir="$ROOT/dist"
else
- $PYTHON_CMD setup.py bdist_wheel --dist-dir=../dist
+ $PYTHON_CMD setup.py bdist_wheel --dist-dir="$ROOT/dist"
fi
else
- $PYTHON_CMD setup.py bdist_wheel --dist-dir=../dist
+ $PYTHON_CMD setup.py bdist_wheel --dist-dir="$ROOT/dist"
fi
if [ -n "$PLAT" ]; then
@@ -94,8 +94,8 @@ build_pyfory() {
# and rename the wheel with the manylinux tag.
PYARROW_LIB_DIR=$($PYTHON_CMD -c 'import pyarrow;
print(":".join(pyarrow.get_library_dirs()))')
export LD_LIBRARY_PATH="$PYARROW_LIB_DIR:$LD_LIBRARY_PATH"
- auditwheel repair ../dist/pyfory-*-linux_*.whl --plat "$PLAT" --exclude
'*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w ../dist/
- rm ../dist/pyfory-*-linux_*.whl
+ auditwheel repair "$ROOT/dist"/pyfory-*-linux_*.whl --plat "$PLAT"
--exclude '*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w "$ROOT/dist"
+ rm "$ROOT/dist"/pyfory-*-linux_*.whl
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "Skip macos wheel repair"
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
@@ -103,7 +103,7 @@ build_pyfory() {
fi
echo "Wheels for $PYTHON_CMD:"
- ls -l ../dist
+ ls -l "$ROOT/dist"
popd
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]