41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 1724d5d1f6d2031bd1377c173466141dec2b7d2a Mon Sep 17 00:00:00 2001
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
Date: Tue, 23 May 2023 17:15:51 +0200
|
|
Subject: [PATCH 2/4] drop incompatible cargo flags from setuptools_rust
|
|
|
|
---
|
|
setup.py | 10 +---------
|
|
1 file changed, 1 insertion(+), 9 deletions(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index 358d0fa..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,9 +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.41.0
|
|
|