Skip to content
This repository was archived by the owner on Aug 13, 2022. It is now read-only.

Commit 3a353cb

Browse files
committed
Pass rust version to build-wheels-manylinux
1 parent 081455a commit 3a353cb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PY_RUN ?= pipenv run
44
# extension module.
55
RUSTCSV_BUILD_DEBUG ?= True
66
RUSTCSV_BUILD_NATIVE ?= True
7+
RUSTCSV_RUST_VERSION ?= nightly
78
MANYLINUX_IMAGE ?= quay.io/pypa/manylinux1_x86_64
89
WHEEL_PYTHON_VERSIONS ?= cp36 cp37
910
WHEELHOUSE = wheelhouse
@@ -87,7 +88,6 @@ benchmark: | develop-release
8788
--benchmark-only \
8889
--benchmark-timer $(PYTEST_BENCHMARK_TIMER) \
8990
--benchmark-sort $(PYTEST_BENCHMARK_SORT) \
90-
--benchmark-histogram \
9191
--benchmark-autosave
9292

9393
.PHONY: benchmark-full
@@ -133,6 +133,7 @@ build-wheels-manylinux: | requirements-files
133133
-v $(shell pwd):/io \
134134
--env RUSTCSV_BUILD_DEBUG=$(RUSTCSV_BUILD_DEBUG) \
135135
--env RUSTCSV_BUILD_NATIVE=$(RUSTCSV_BUILD_NATIVE) \
136+
--env RUSTCSV_RUST_VERSION=$(RUSTCSV_RUST_VERSION) \
136137
--env WHEELHOUSE=/io/$(WHEELHOUSE) \
137138
$(MANYLINUX_IMAGE) \
138139
/io/travis/build-wheels-manylinux.sh $(WHEEL_PYTHON_VERSIONS)

travis/install-rust.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ TRAVIS_DIR="$(dirname "${BASH_SOURCE[0]}")"
55
source "$TRAVIS_DIR/_output_helpers.sh"
66

77
# Parameters
8-
RUST_VERSION="${RUST_VERSION:-"nightly"}"
8+
RUSTCSV_RUST_VERSION="${RUSTCSV_RUST_VERSION:-"nightly"}"
99

1010
install_rust() {
11-
# install rust + cargo nightly
11+
# install rust + cargo
1212
# ============================
1313
CARGO_BIN=$HOME/.cargo/bin
1414
if ! test -d "$CARGO_BIN"; then
15-
green "Installing rust + cargo"
15+
green "Installing rust + cargo, version $RUSTCSV_RUST_VERSION"
1616
curl https://sh.rustup.rs -sSf \
17-
| sh -s -- -y --default-toolchain "$RUST_VERSION"
17+
| sh -s -- -y --default-toolchain "$RUSTCSV_RUST_VERSION"
1818
fi
1919
if ! grep "$CARGO_BIN" <<<"$PATH" &> /dev/null; then
2020
green "Adding $CARGO_BIN to \$PATH"

0 commit comments

Comments
 (0)