Skip to content

Commit 9da57fe

Browse files
committed
match arch
1 parent eab9a50 commit 9da57fe

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ matrix:
2323
# we are using Rustup instead of cross when WHEELPLATFORM="*manylinux*". This is because both
2424
# manylinux and Cross depend on Docker but the shared libs in the Cross contains are too new
2525
# to make valid manylinux containers.
26-
#
26+
#
2727
# You can lean more about the differnt Rustup toolchains here:
2828
# https://github.com/rust-lang-nursery/rustup.rs#toolchain-specification
2929
#
@@ -35,7 +35,7 @@ matrix:
3535
# cp27-cp27m, cp27-cp27mu, cp33-cp33m, cp34-cp34m, cp35-cp35m, cp36-cp36m
3636
# PYENV versions isn't relevent here so just keep it at 3.6.1
3737
- env: TARGET=i686-unknown-linux-gnu PYENV=3.6.1 WHEELPLATFORM=manylinux1_i686
38-
- env: TARGET=stable-x86_64-unknown-linux-gnu PYENV=3.6.1 WHEELPLATFORM=manylinux1_x86_64
38+
- env: TARGET=x86_64-unknown-linux-gnu PYENV=3.6.1 WHEELPLATFORM=manylinux1_x86_64
3939

4040
# Note that musl isn't covered by manylinux and I had trouble building
4141
# dylibs with it as well

ci/install.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ main() {
2121
fi
2222

2323
# This fetches latest stable release
24-
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
25-
| cut -d/ -f3 \
26-
| grep -E '^v[0.1.0-9.]+$' \
27-
| $sort --version-sort \
28-
| tail -n1)
24+
# local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
25+
# | cut -d/ -f3 \
26+
# | grep -E '^v[0.1.0-9.]+$' \
27+
# | $sort --version-sort \
28+
# | tail -n1)
2929
curl -LSfs https://japaric.github.io/trust/install.sh | \
3030
sh -s -- \
3131
--force \
3232
--git japaric/cross \
33-
--tag $tag \
33+
--tag 'v0.1.10' \
3434
--target $target
3535
}
3636

ci/manylinux_build_wheel.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function rust_build() {
2121
curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
2222
sh /tmp/rustup.sh -y
2323
source $HOME/.cargo/env
24-
rustup install "nightly-$TARGET"
25-
rustup default "nightly-$TARGET"
24+
rustup install "stable-$TARGET"
25+
rustup default "stable-$TARGET"
2626
rustup update
2727

2828
cd /io/trust_pypi_example/rust/

ci/script.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ manylinux_linux() {
1111
CACHES="-v $HOME/.manylinux_pip_cache:/root/.cache/pip \
1212
-v $HOME/.manylinux_cargo_cache:/root/.cargo \
1313
-v $HOME/.manylinux_rustup_cache:/root/.rustup "
14-
# SUB='-v /home/matt/workspace/auditwheel/auditwheel/wheeltools.py:/opt/python/cp36-cp36m/lib/python3.6/site-packages/auditwheel/wheeltools.py'
15-
docker run --rm -e TARGET="${TARGET}" $CACHES -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/ci/manylinux_build_wheel.sh
14+
15+
# WHEELPLATFORM is either "manylinux1_i686" or "manylinux1_x86_64"
16+
docker run --rm -e TARGET="${TARGET}" $CACHES -v `pwd`:/io "quay.io/pypa/${WHEELPLATFORM}" /io/ci/manylinux_build_wheel.sh
1617

1718
}
1819

0 commit comments

Comments
 (0)