You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
From 13aff723200e5936574a4a98954d054cee9fa3c5 Mon Sep 17 00:00:00 2001
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
Date: Tue, 12 Dec 2023 12:35:25 +0100
|
|
Subject: [PATCH 2/3] drop incompatible cargo flags from setuptools_rust
|
|
|
|
---
|
|
setup.py | 8 +-------
|
|
1 file changed, 1 insertion(+), 7 deletions(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index 50d15be..1443b94 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -44,12 +44,6 @@ with open("README.md", encoding="utf-8", errors="ignore") as fp:
|
|
with open("Cargo.toml", "rb") as fp:
|
|
version = tomllib.load(fp)["package"]["version"]
|
|
|
|
-# Use `--no-default-features` by default for a minimal build to support PEP 517.
|
|
-# `MATURIN_SETUP_ARGS` env var can be used to pass customized arguments to cargo.
|
|
-cargo_args = ["--no-default-features"]
|
|
-if os.getenv("MATURIN_SETUP_ARGS"):
|
|
- cargo_args = shlex.split(os.getenv("MATURIN_SETUP_ARGS", ""))
|
|
-
|
|
setup(
|
|
name="maturin",
|
|
author="konstin",
|
|
@@ -64,7 +58,7 @@ setup(
|
|
python_requires=">=3.7",
|
|
cmdclass={"bdist_wheel": bdist_wheel},
|
|
packages=["maturin"],
|
|
- rust_extensions=[RustBin("maturin", args=cargo_args, cargo_manifest_args=["--locked"])],
|
|
+ rust_extensions=[RustBin("maturin")],
|
|
classifiers=[
|
|
"Topic :: Software Development :: Build Tools",
|
|
"Programming Language :: Rust",
|
|
--
|
|
2.43.0
|
|
|