Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
m4/sage_spkg_collect.m4: If configured --without-python, mark all Pyt…
Browse files Browse the repository at this point in the history
…hon packages as not required
  • Loading branch information
Matthias Koeppe committed Jan 24, 2021
1 parent 8aff784 commit 932ebd8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/pkgs/python3/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SAGE_SPKG_CONFIGURE([python3], [
with_python=''
])
AS_IF([test x"$with_python" = x"no"], [
ac_path_PYTHON3=no
ac_cv_path_PYTHON3=no
sage_spkg_install_python3=no
], [
ac_path_PYTHON3="$with_python"
Expand Down
20 changes: 16 additions & 4 deletions m4/sage_spkg_collect.m4
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,24 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
SPKG_NAME=$(basename $DIR)
SPKG_VERSION=$(newest_version $SPKG_NAME)
AS_VAR_PUSHDEF([sage_spkg_install], [sage_spkg_install_${SPKG_NAME}])dnl
AS_VAR_PUSHDEF([sage_require], [sage_require_${SPKG_NAME}])dnl
AS_VAR_PUSHDEF([sage_use_system], [sage_use_system_${SPKG_NAME}])dnl
in_sdist=no
SPKG_TREE_VAR=SAGE_LOCAL
if test -f "$DIR/requirements.txt" -o -f "$DIR/install-requires.txt"; then
dnl A Python package
SPKG_TREE_VAR=SAGE_VENV
fi
AS_VAR_IF([ac_cv_path_PYTHON3], [no], [
AS_VAR_IF([SPKG_TREE_VAR], [SAGE_VENV], [
AS_VAR_SET([sage_spkg_install], no)
AS_VAR_SET([sage_require], no)
])
])
uninstall_message=""
# Check consistency of 'DIR/type' file
case "$SPKG_TYPE" in
Expand Down Expand Up @@ -201,10 +217,6 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
SAGE_PACKAGE_VERSIONS="${SAGE_PACKAGE_VERSIONS}$(printf '\nvers_')${SPKG_NAME} = ${SPKG_VERSION}"
AS_VAR_PUSHDEF([sage_spkg_install], [sage_spkg_install_${SPKG_NAME}])dnl
AS_VAR_PUSHDEF([sage_require], [sage_require_${SPKG_NAME}])dnl
AS_VAR_PUSHDEF([sage_use_system], [sage_use_system_${SPKG_NAME}])dnl
# If $sage_spkg_install_{SPKG_NAME} is set to no, then set inst_<pkgname> to
# some dummy file to skip the installation. Note that an explicit
# "./sage -i SPKG_NAME" will still install the package.
Expand Down

0 comments on commit 932ebd8

Please sign in to comment.