Show More
@@ -166,7 +166,6 b' dependencies = [' | |||||
166 | "libc", |
|
166 | "libc", | |
167 | "num-traits", |
|
167 | "num-traits", | |
168 | "paste", |
|
168 | "paste", | |
169 | "python27-sys", |
|
|||
170 | "python3-sys", |
|
169 | "python3-sys", | |
171 | ] |
|
170 | ] | |
172 |
|
171 | |||
@@ -671,16 +670,6 b' dependencies = [' | |||||
671 | ] |
|
670 | ] | |
672 |
|
671 | |||
673 | [[package]] |
|
672 | [[package]] | |
674 | name = "python27-sys" |
|
|||
675 | version = "0.7.0" |
|
|||
676 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
|||
677 | checksum = "94670354e264300dde81a5864cbb6bfc9d56ac3dcf3a278c32cb52f816f4dfd1" |
|
|||
678 | dependencies = [ |
|
|||
679 | "libc", |
|
|||
680 | "regex", |
|
|||
681 | ] |
|
|||
682 |
|
||||
683 | [[package]] |
|
|||
684 | name = "python3-sys" |
|
673 | name = "python3-sys" | |
685 | version = "0.7.0" |
|
674 | version = "0.7.0" | |
686 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
675 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -12,12 +12,10 b' crate-type = ["cdylib"]' | |||||
12 | default = ["python3"] |
|
12 | default = ["python3"] | |
13 |
|
13 | |||
14 | # Features to build an extension module: |
|
14 | # Features to build an extension module: | |
15 | python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"] |
|
|||
16 | python3 = ["cpython/python3-sys", "cpython/extension-module"] |
|
15 | python3 = ["cpython/python3-sys", "cpython/extension-module"] | |
17 |
|
16 | |||
18 |
# Enable |
|
17 | # Enable this feature to build a test executable linked to libpython: | |
19 |
# e.g. cargo test --no-default-features --features python |
|
18 | # e.g. cargo test --no-default-features --features python3-bin | |
20 | python27-bin = ["cpython/python27-sys"] |
|
|||
21 | python3-bin = ["cpython/python3-sys"] |
|
19 | python3-bin = ["cpython/python3-sys"] | |
22 |
|
20 | |||
23 | [dependencies] |
|
21 | [dependencies] | |
@@ -29,4 +27,3 b' log = "0.4.8"' | |||||
29 | env_logger = "0.7.1" |
|
27 | env_logger = "0.7.1" | |
30 | stable_deref_trait = "1.2.0" |
|
28 | stable_deref_trait = "1.2.0" | |
31 | vcsgraph = "0.2.0" |
|
29 | vcsgraph = "0.2.0" | |
32 |
|
@@ -62,7 +62,7 b' py_module_initializer!(rustext, initrust' | |||||
62 | Ok(()) |
|
62 | Ok(()) | |
63 | }); |
|
63 | }); | |
64 |
|
64 | |||
65 |
#[cfg(not( |
|
65 | #[cfg(not(feature = "python3-bin"))] | |
66 | #[test] |
|
66 | #[test] | |
67 | #[ignore] |
|
67 | #[ignore] | |
68 | fn libpython_must_be_linked_to_run_tests() { |
|
68 | fn libpython_must_be_linked_to_run_tests() { |
General Comments 0
You need to be logged in to leave comments.
Login now