Patchwork [7,of,7] rust-cpython: drop direct dependency on python(27|3)_sys

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 13, 2019, 1:41 p.m.
Message ID <f04203256726d2172b0a.1570974103@mimosa>
Download mbox | patch
Permalink /patch/42301/
State New
Headers show

Comments

Yuya Nishihara - Oct. 13, 2019, 1:41 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1570970825 -32400
#      Sun Oct 13 21:47:05 2019 +0900
# Node ID f04203256726d2172b0aa42311263f56dd12d3ac
# Parent  7ac435844d990e027d8b589909ca42d17a89b6b4
rust-cpython: drop direct dependency on python(27|3)_sys

We no longer use it.

Patch

diff --git a/rust/Cargo.lock b/rust/Cargo.lock
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -66,8 +66,6 @@  dependencies = [
  "cpython 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "hg-core 0.1.0",
  "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)",
- "python27-sys 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "python3-sys 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
 [[package]]
diff --git a/rust/hg-cpython/Cargo.toml b/rust/hg-cpython/Cargo.toml
--- a/rust/hg-cpython/Cargo.toml
+++ b/rust/hg-cpython/Cargo.toml
@@ -11,12 +11,9 @@  crate-type = ["cdylib"]
 [features]
 default = ["python27"]
 
-python27 = ["cpython/python27-sys",
-            "cpython/extension-module-2-7",
-            "python27-sys",
-            ]
+python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"]
 
-python3 = ["python3-sys", "cpython/python3-sys", "cpython/extension-module"]
+python3 = ["cpython/python3-sys", "cpython/extension-module"]
 
 [dependencies]
 hg-core = { path = "../hg-core" }
@@ -25,11 +22,3 @@  libc = '*'
 [dependencies.cpython]
 version = "0.3"
 default-features = false
-
-[dependencies.python27-sys]
-version = "0.3"
-optional = true
-
-[dependencies.python3-sys]
-version = "0.3"
-optional = true