From f9904f6ec59b4fdd4ab35f818cad25681f415e40 Mon Sep 17 00:00:00 2001 From: Matt Weidner Date: Fri, 13 Jul 2018 17:34:19 -0500 Subject: [PATCH 1/2] Remove regex-capi from RURE_DIR environment variable during python wheel build step. Add note that RUSTFLAGS and simd-accel feature flag are not needed if building version 1.0.1 and above of the regex crate. SIMD acceleration is enabled automatically on Rust stable 1.27 or newer. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 4c0787f..0499b0f 100644 --- a/README.rst +++ b/README.rst @@ -86,7 +86,7 @@ feature: `regex = { version = "0.2.2", path = "..", features=["simd-accel"] }`. * git clone https://github.com/rust-lang-nursery/regex * `cargo build --release --manifest-path /path/to/regex/regex-capi/Cargo.toml` - * To build with SSE3: `RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel` + * To build with SSE3: `RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel` This is not needed after version 1.0.1 which enables SIMD optimizations automatically on Rust stable 1.27 or newer. -* `RURE_DIR=/path/to/regex/regex-capi python setup.py bdist_wheel` +* `RURE_DIR=/path/to/regex/ python setup.py bdist_wheel` * `pip install rure --no-index -f ./dist` From b83e592edb81c4c05f6feaa2e988722af06cc71e Mon Sep 17 00:00:00 2001 From: Matt Weidner Date: Fri, 13 Jul 2018 17:43:00 -0500 Subject: [PATCH 2/2] Update README.rst Fix formatting issue with previous log entry. --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0499b0f..bf5a268 100644 --- a/README.rst +++ b/README.rst @@ -86,7 +86,8 @@ feature: `regex = { version = "0.2.2", path = "..", features=["simd-accel"] }`. * git clone https://github.com/rust-lang-nursery/regex * `cargo build --release --manifest-path /path/to/regex/regex-capi/Cargo.toml` - * To build with SSE3: `RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel` This is not needed after version 1.0.1 which enables SIMD optimizations automatically on Rust stable 1.27 or newer. + * To build with SSE3: `RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel` + This is not needed after version 1.0.1 which enables SIMD optimizations automatically on Rust stable 1.27 or newer. * `RURE_DIR=/path/to/regex/ python setup.py bdist_wheel` * `pip install rure --no-index -f ./dist`