Skip to content

Commit e9b0209

Browse files
esafakchaokunyang
authored andcommitted
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
1 parent 248ca39 commit e9b0209

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ci/deploy.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,29 +81,29 @@ build_pyfory() {
8181
echo "MACOS_VERSION: $MACOS_VERSION"
8282
if [[ "$MACOS_VERSION" == "13"* ]]; then
8383
export MACOSX_DEPLOYMENT_TARGET=10.13
84-
$PYTHON_CMD setup.py bdist_wheel --plat-name macosx_10_13_x86_64 --dist-dir=../dist
84+
$PYTHON_CMD setup.py bdist_wheel --plat-name macosx_10_13_x86_64 --dist-dir="$ROOT/dist"
8585
else
86-
$PYTHON_CMD setup.py bdist_wheel --dist-dir=../dist
86+
$PYTHON_CMD setup.py bdist_wheel --dist-dir="$ROOT/dist"
8787
fi
8888
else
89-
$PYTHON_CMD setup.py bdist_wheel --dist-dir=../dist
89+
$PYTHON_CMD setup.py bdist_wheel --dist-dir="$ROOT/dist"
9090
fi
9191

9292
if [ -n "$PLAT" ]; then
9393
# In manylinux container, repair the wheel to embed shared libraries
9494
# and rename the wheel with the manylinux tag.
9595
PYARROW_LIB_DIR=$($PYTHON_CMD -c 'import pyarrow; print(":".join(pyarrow.get_library_dirs()))')
9696
export LD_LIBRARY_PATH="$PYARROW_LIB_DIR:$LD_LIBRARY_PATH"
97-
auditwheel repair ../dist/pyfory-*-linux_*.whl --plat "$PLAT" --exclude '*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w ../dist/
98-
rm ../dist/pyfory-*-linux_*.whl
97+
auditwheel repair "$ROOT/dist"/pyfory-*-linux_*.whl --plat "$PLAT" --exclude '*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w "$ROOT/dist"
98+
rm "$ROOT/dist"/pyfory-*-linux_*.whl
9999
elif [[ "$OSTYPE" == "darwin"* ]]; then
100100
echo "Skip macos wheel repair"
101101
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
102102
echo "Skip windows wheel repair"
103103
fi
104104

105105
echo "Wheels for $PYTHON_CMD:"
106-
ls -l ../dist
106+
ls -l "$ROOT/dist"
107107
popd
108108
}
109109

0 commit comments

Comments
 (0)