Skip to content

Commit d045aee

Browse files
committed
build/pkgs/sagelib: defer feature checks to runtime
For backwards compatibility, defer all possible build-time feature checks to run-time. (For now this only affects the detection of the mwrank program.)
1 parent 02a32e3 commit d045aee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/pkgs/sagelib/spkg-install.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ if [ "$SAGE_EDITABLE" = yes ]; then
5555
--config-settings=build-dir="build/sage-distro" \
5656
--config-settings=setup-args="--native-file=$SAGE_PKGS/../platform/meson/sage-configure-native-file.ini" \
5757
--config-settings=setup-args="-DSAGE_LOCAL=$SAGE_LOCAL" \
58-
--config-settings=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS"
58+
--config-settings=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS" \
59+
--config-settings=setup-args="-Ddefer_feature_checks=true"
5960

6061
if [ "$SAGE_WHEELS" = yes ]; then
6162
# Additionally build a wheel (for use in other venvs)
@@ -73,7 +74,8 @@ else
7374
# 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
7475
sdh_pip_install --no-build-isolation . --config-setting=build-dir="build/sage-distro" \
7576
--config-setting=setup-args="-DSAGE_LOCAL=$SAGE_LOCAL" \
76-
--config-setting=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS"
77+
--config-setting=setup-args="-Dbuild-docs=$SAGE_BUILD_DOCS" \
78+
--config-settings=setup-args="-Ddefer_feature_checks=true"
7779
fi
7880

7981
# Remove (potentially invalid) star import caches.

0 commit comments

Comments
 (0)