forked from skycoin/pyskycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skyapi] refs skycoin#131 separating the manylinux wheels build of py…
…skycoin and skyapi
- Loading branch information
Showing
2 changed files
with
40 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# Install system packages required by our library | ||
yum install -y sudo pcre pcre-devel | ||
mkdir -p "$HOME/bin" | ||
PIP=/opt/python/cp27-cp27m/bin/pip source /io/.travis/install-linux.sh | ||
eval "$(gimme 1.10)" | ||
|
||
# Install golang | ||
curl -sL -o "go1.11.3.linux-$1.tar.gz" https://storage.googleapis.com/golang/go1.11.3.linux-$1.tar.gz | ||
sudo tar -zxf go1.11.3.linux-$1.tar.gz -C /usr/local | ||
echo 'export GOROOT=/usr/local/go' | sudo tee -a /etc/profile | ||
echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee -a /etc/profile | ||
echo 'export CGO_ENABLE=1' | sudo tee -a /etc/profile | ||
source /etc/profile | ||
go version | ||
go env | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
"${PYBIN}/pip" install -r /io/lib/skyapi/requirements.txt | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
auditwheel repair "$whl" -w /io/lib/skyapi/wheelhouse/ | ||
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