Skip to content

Commit 54c95d6

Browse files
author
Matthias Koeppe
committed
pkgs/sagemath-{categories,objects,standard}: Use sage-cython-native-file.ini
1 parent c2e3342 commit 54c95d6

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

build/pkgs/sagelib/spkg-install.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if [ "$SAGE_EDITABLE" = yes ]; then
6464

6565
if [ "$SAGE_WHEELS" = yes ]; then
6666
# Additionally build a wheel (for use in other venvs)
67-
cd $SAGE_PKGS/sagelib/src && time python3 -m build --no-isolation --wheel --skip-dependency-check . && sdh_store_wheel .
67+
cd $SAGE_PKGS/sagelib/src && time python3 -m build --no-isolation --wheel --skip-dependency-check -Csetup-args="--native-file=$(pwd)/sage-cython-native-file.ini" . && sdh_store_wheel .
6868
fi
6969
else
7070
# Make sure that an installed old version of sagelib in which sage is an ordinary package
@@ -76,7 +76,7 @@ else
7676
if [ "$SAGE_WHEELS" = yes ]; then
7777
# Use --no-build-isolation to avoid rebuilds because of dependencies:
7878
# Compiling sage/interfaces/sagespawn.pyx because it depends on /private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-build-env-609n5985/overlay/lib/python3.10/site-packages/Cython/Includes/posix/unistd.pxd
79-
time sdh_pip_install --no-build-isolation .
79+
time sdh_pip_install --no-build-isolation -Csetup-args="--native-file=$(pwd)/sage-cython-native-file.ini" .
8080
else
8181
SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS+="mcqd,tdlib,coxeter3,sirocco,meataxe,bliss"
8282
time python3 -u setup.py --no-user-cfg build install || exit 1

build/pkgs/sagemath_objects/spkg-install.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ export CXX=$(echo "$CXX" | sed 's/-std=[a-z0-9+]*//g')
55
export CYTHON=sage-cython
66
export CYTHON_FOR_BUILD=sage-cython
77

8+
89
export PIP_NO_INDEX=true
910
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS"
1011

1112
# Do not install the wheel.
1213
DIST_DIR="$(mktemp -d)"
13-
python3 -m build --no-isolation --wheel --skip-dependency-check --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
14+
python3 -m build --no-isolation --wheel --skip-dependency-check -Csetup-args="--native-file=$(pwd)/sage-cython-native-file.ini" --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
1415

1516
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . >&2 && echo $wheel)
1617
ls -l "$wheel"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sagemath-objects/sage-cython-native-file.ini
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[binaries]
2+
cython = 'sage-cython'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sagemath-objects/sage-cython-native-file.ini

0 commit comments

Comments
 (0)