-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:keystone-engine/keystone
- Loading branch information
Showing
3 changed files
with
22 additions
and
20 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 |
---|---|---|
@@ -1,24 +1,15 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
cd /work/bindings/python | ||
|
||
sudo rm /usr/bin/python && sudo ln -s /opt/python/cp36-cp36m/bin/python /usr/bin/python; python -V | ||
|
||
function repair_wheel { | ||
wheel="$1" | ||
if ! auditwheel show "$wheel"; then | ||
echo "Skipping non-platform wheel $wheel" | ||
else | ||
auditwheel repair "$wheel" -w /work/bindings/python/dist/ | ||
fi | ||
} | ||
|
||
cd bindings/python | ||
sudo rm /usr/bin/python && sudo ln -s /opt/python/cp27-cp27m/bin/python /usr/bin/python; python -V | ||
|
||
# Compile wheels | ||
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel -d wheelhouse | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
repair_wheel "$whl" | ||
done | ||
if [ -f /opt/python/cp36-cp36m/bin/python ];then | ||
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel | ||
else | ||
python3 setup.py bdist_wheel | ||
fi | ||
cd dist | ||
auditwheel repair *.whl | ||
mv -f wheelhouse/*.whl . |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[metadata] | ||
description-file = README.pypi-src | ||
[bdist_wheel] | ||
universal = 1 |