mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-16 20:13:52 +02:00
New package: python3-setuptools-rust-0.11.6
This commit is contained in:
parent
26565943ec
commit
665b62f834
2 changed files with 50 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
From cbd30fda8c6f7cc0d304728413f2cbf488da096b Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Andrew J. Hesford" <ajh@sideband.org>
|
||||||
|
Date: Mon, 8 Feb 2021 12:58:58 -0500
|
||||||
|
Subject: [PATCH] Augment, rather than replace, existing RUSTFLAGS when
|
||||||
|
building
|
||||||
|
|
||||||
|
Some complex environments, like Void's cross-compilation environment,
|
||||||
|
use RUSTFLAGS to control the behavior of rust compilation. Rather than
|
||||||
|
overwriting RUSTFLAGS with custom flags, augment any existing RUSTFLAGS
|
||||||
|
to preserve these environments.
|
||||||
|
---
|
||||||
|
setuptools_rust/build.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git setuptools_rust/build.py setuptools_rust/build.py
|
||||||
|
index 40d8e42..60eddfa 100644
|
||||||
|
--- setuptools_rust/build.py
|
||||||
|
+++ setuptools_rust/build.py
|
||||||
|
@@ -186,7 +186,7 @@ def build_extension(self, ext):
|
||||||
|
rustflags += " -C target-cpu=native"
|
||||||
|
|
||||||
|
if rustflags:
|
||||||
|
- env["RUSTFLAGS"] = rustflags
|
||||||
|
+ env["RUSTFLAGS"] = (env.get("RUSTFLAGS", "") + " " + rustflags).strip()
|
||||||
|
|
||||||
|
# Execute cargo
|
||||||
|
try:
|
23
srcpkgs/python3-setuptools-rust/template
Normal file
23
srcpkgs/python3-setuptools-rust/template
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Template file for 'python3-setuptools-rust'
|
||||||
|
pkgname=python3-setuptools-rust
|
||||||
|
version=0.11.6
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname#python3-}-${version}"
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools_scm python3-toml"
|
||||||
|
depends="python3-semanticversion python3-toml python3-setuptools"
|
||||||
|
short_desc="Setuptools plugin for Rust support"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/PyO3/setuptools-rust"
|
||||||
|
changelog="https://raw.githubusercontent.com/PyO3/setuptools-rust/master/CHANGELOG.md"
|
||||||
|
distfiles="${PYPI_SITE}/s/setuptools-rust/setuptools-rust-${version}.tar.gz"
|
||||||
|
checksum=a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
echo "Tests have unpackaged dependencies; skipping"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue