Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 0a83740

Browse files
author
Matthias Koeppe
committed
Initialize SAGE_ENABLE_... properly, add 'configure --disable-notebook'
1 parent 8397c74 commit 0a83740

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bootstrap () {
8484
# initialize SAGE_ENABLE... options for standard packages
8585
for pkgname in $(./sage --package list :standard: | sort); do
8686
spkg_configures="$spkg_configures
87-
AC_SUBST(SAGE_ENABLE_$pkgname, [yes])"
87+
AS_VAR_SET_IF([SAGE_ENABLE_$pkgname], [], [AS_VAR_SET([SAGE_ENABLE_$pkgname], [yes])])"
8888
done
8989
# --enable-SPKG options
9090
for pkgname in $(./sage --package list :optional: :experimental: | sort); do

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,14 @@ AS_IF([test "x$enable_download_from_upstream_url" = "xyes"], [
416416
])
417417
AC_SUBST([SAGE_SPKG_OPTIONS])
418418

419+
AC_ARG_ENABLE([notebook],
420+
AS_HELP_STRING([--disable-notebook],
421+
[disable build of the Jupyter notebook and related packages]), [
422+
for pkg in notebook nbconvert nbformat tornado terminado send2trash prometheus_client mistune traitlets pandocfilters bleach defusedxml jsonschema widgetsnbextension jupyter_jsmol; do
423+
AS_VAR_SET([SAGE_ENABLE_$pkg], [$enableval])
424+
done
425+
])
426+
419427
SAGE_SPKG_COLLECT()
420428

421429
dnl AC_CONFIG_HEADERS([config.h])

m4/sage_spkg_collect.m4

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,14 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
164164
base)
165165
message="came preinstalled with the SageMath tarball"
166166
;;
167-
standard|optional|experimental)
167+
standard)
168+
AS_VAR_IF([SAGE_ENABLE_]${SPKG_NAME}, [yes], [
169+
message="$SPKG_TYPE, will be installed as an SPKG"
170+
], [
171+
message="$SPKG_TYPE, but disabled using configure option"
172+
])
173+
;;
174+
optional|experimental)
168175
AS_VAR_IF([SAGE_ENABLE_]${SPKG_NAME}, [yes], [
169176
message="$SPKG_TYPE, will be installed as an SPKG"
170177
], [

0 commit comments

Comments
 (0)