Skip to content

Commit 69f5da1

Browse files
committed
fix linux binaries
1 parent a3660b4 commit 69f5da1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.ci/unix/delocate.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ elif [ "$(lsb_release -i -s)" == "CentOS" ]; then
2626
tmp_dir=$(mktemp -d)
2727
cd $tmp_dir
2828

29-
echo "from setuptools import setup; setup(name='app', packages=['main'], package_data={'main': ['*.exe']})" > setup.py
30-
ln -s $root_dir/build/install main
29+
echo "from setuptools import setup; setup(name='main', packages=[''], package_data={'': ['*.exe', 'util/*.exe']})" > setup.py
30+
cp -r $root_dir/build/install/. .
3131
$py setup.py bdist_wheel
3232

3333
# CentOS uses /usr/lib64 but some manually installed dependencies end up in /usr/lib
@@ -38,7 +38,9 @@ elif [ "$(lsb_release -i -s)" == "CentOS" ]; then
3838
unzip *.whl
3939

4040
# /bin/cp as cp is aliased to 'cp -i' and would ask before overwriting
41-
/bin/cp -r main/. $root_dir/build/install
41+
/bin/cp *.exe $root_dir/build/install
42+
/bin/cp util/*.exe $root_dir/build/install/util
43+
/bin/cp -r main.libs $root_dir/build/install
4244

4345
else
4446
echo "Unsupported OS: $(uname)"

0 commit comments

Comments
 (0)