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

Commit a67300b

Browse files
author
Matthias Koeppe
committed
Merge #30383
2 parents 49c10c1 + c3e4093 commit a67300b

File tree

13 files changed

+173
-76
lines changed

13 files changed

+173
-76
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ all: base-toolchain
1515
build: base-toolchain
1616
$(MAKE) all-build
1717

18+
build-local: base-toolchain
19+
$(MAKE) all-build-local
20+
21+
build-venv: base-toolchain
22+
$(MAKE) all-build-venv
23+
1824
start: base-toolchain
1925
$(MAKE) build-start
2026

bootstrap

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ install_config_rpath() {
8080
bootstrap () {
8181
rm -f m4/sage_spkg_configures.m4
8282
spkg_configures=""
83+
84+
# initialize SAGE_ENABLE... options for standard packages
85+
for pkgname in $(./sage --package list :standard: | sort); do
86+
spkg_configures="$spkg_configures
87+
AS_VAR_SET_IF([SAGE_ENABLE_$pkgname], [], [AS_VAR_SET([SAGE_ENABLE_$pkgname], [yes])])"
88+
done
89+
# --enable-SPKG options
8390
for pkgname in $(./sage --package list :optional: :experimental: | sort); do
8491
# Trac #29629: Temporary solution for Sage 9.1: Do not provide
8592
# --enable-SPKG options for installing pip packages
@@ -89,7 +96,8 @@ bootstrap () {
8996
case "$pkgname" in
9097
_*) ;;
9198
*) spkg_configures="$spkg_configures
92-
SAGE_SPKG_ENABLE([$pkgname], [$pkgtype])" ;;
99+
AC_SUBST(SAGE_ENABLE_$pkgname, [if_installed])
100+
SAGE_SPKG_ENABLE([$pkgname], [$pkgtype], [$(head -n1 build/pkgs/$pkgname/SPKG.rst 2>/dev/null || echo $pkgname)])" ;;
93101
esac
94102
fi
95103
done

build/make/Makefile.in

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,28 @@ GCC_DEP = @SAGE_GCC_DEP@
8686

8787
@SAGE_PACKAGE_DEPENDENCIES@
8888

89-
# All standard packages
90-
STANDARD_PACKAGES = @SAGE_STANDARD_PACKAGES@
91-
STANDARD_PACKAGE_INSTS = \
92-
$(foreach pkgname,$(STANDARD_PACKAGES),$(inst_$(pkgname)))
89+
# Installation trees for all packages, in the format:
90+
#
91+
# - for a non-Python package:
92+
#
93+
# trees_<pkgname1> = SAGE_LOCAL
94+
#
95+
# - for a Python package:
96+
#
97+
# trees_<pkgname2> = SAGE_VENV
98+
99+
@SAGE_PACKAGE_TREES@
93100

94-
# All optional installed packages (triggers the auto-update)
101+
# All standard/optional/experimental installed packages (triggers the auto-update)
95102
OPTIONAL_INSTALLED_PACKAGES = @SAGE_OPTIONAL_INSTALLED_PACKAGES@
96-
OPTIONAL_INSTALLED_PACKAGE_INSTS = \
97-
$(foreach pkgname,$(OPTIONAL_INSTALLED_PACKAGES),$(inst_$(pkgname)))
103+
INSTALLED_PACKAGES = $(OPTIONAL_INSTALLED_PACKAGES)
104+
INSTALLED_PACKAGE_INSTS = \
105+
$(foreach pkgname,$(INSTALLED_PACKAGES),$(inst_$(pkgname)))
98106

99-
# All previously installed optional packages that are to be uninstalled
100-
OPTIONAL_CLEANED_PACKAGES = @SAGE_OPTIONAL_CLEANED_PACKAGES@
101-
OPTIONAL_CLEANED_PACKAGES_CLEANS = $(OPTIONAL_CLEANED_PACKAGES:%=%-clean)
107+
# All previously installed standard/optional/experimental packages that are to be uninstalled
108+
OPTIONAL_UNINSTALLED_PACKAGES = @SAGE_OPTIONAL_UNINSTALLED_PACKAGES@
109+
UNINSTALLED_PACKAGES = $(OPTIONAL_UNINSTALLED_PACKAGES)
110+
UNINSTALLED_PACKAGES_CLEANS = $(UNINSTALLED_PACKAGES:%=%-clean)
102111

103112
# All packages which should be downloaded
104113
SDIST_PACKAGES = @SAGE_SDIST_PACKAGES@
@@ -146,6 +155,18 @@ $(INST)/.dummy:
146155
touch $@
147156

148157

158+
# Filtered by installation tree
159+
$(foreach tree,SAGE_LOCAL SAGE_VENV, \
160+
$(eval $(tree)_INSTALLED_PACKAGE_INSTS = \
161+
$(foreach pkgname,$(INSTALLED_PACKAGES), \
162+
$(if $(findstring $(tree),$(trees_$(pkgname))), \
163+
$(inst_$(pkgname))))) \
164+
$(eval $(tree)_CLEANED_PACKAGE_CLEANS = \
165+
$(foreach pkgname,$(INSTALLED_PACKAGES), \
166+
$(if $(findstring $(tree),$(trees_$(pkgname))), \
167+
$(inst_$(pkgname))))))
168+
169+
149170
###############################################################################
150171

151172
# Silent rules
@@ -211,9 +232,19 @@ base-toolchain: _clean-broken-gcc base
211232
# All targets except for the base packages
212233
all-sage: \
213234
sagelib \
214-
$(STANDARD_PACKAGE_INSTS) \
215-
$(OPTIONAL_INSTALLED_PACKAGE_INSTS) \
216-
$(OPTIONAL_CLEANED_PACKAGES_CLEANS)
235+
$(INSTALLED_PACKAGE_INSTS) \
236+
$(UNINSTALLED_PACKAGES_CLEANS)
237+
238+
# Same but filtered by installation trees:
239+
all-build-local: toolchain-deps
240+
+$(MAKE_REC) all-sage-local
241+
242+
all-sage-local: $(SAGE_LOCAL_INSTALLED_PACKAGE_INSTS) $(SAGE_LOCAL_UNINSTALLED_PACKAGES_CLEANS)
243+
244+
all-build-venv: toolchain-deps
245+
+$(MAKE_REC) all-sage-venv
246+
247+
all-sage-venv: $(SAGE_VENV_INSTALLED_PACKAGE_INSTS) $(SAGE_VENV_UNINSTALLED_PACKAGES_CLEANS)
217248

218249
# Download all packages which should be inside an sdist tarball (the -B
219250
# option to make forces all targets to be built unconditionally)
@@ -268,7 +299,7 @@ build-start: all-build
268299
# We make this depend on all standard packages because running
269300
# sage-starts runs sage-location, which should be run after installing
270301
# any package.
271-
$(STARTED): $(STANDARD_PACKAGE_INSTS)
302+
$(STARTED): $(OPTIONAL_INSTALLED_PACKAGE_INSTS)
272303
$(AM_V_at)"$(SAGE_ROOT)/build/bin/sage-starts"
273304

274305

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tarball=ipywidgets-VERSION.tar.gz
2-
sha1=d46a0d2e16cb2a878043576f8b2afd732e8b5491
3-
md5=090f5ad1294b084f075af8f684d8981f
4-
cksum=3253769585
2+
sha1=29efcd1ba915a02078d3a73da487c3ee4db0730f
3+
md5=19c4ddc4cebfdc82bacacf98513fb672
4+
cksum=1780484298
55
upstream_url=https://pypi.io/packages/source/i/ipywidgets/ipywidgets-VERSION.tar.gz
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.1
1+
7.6.3

build/pkgs/pynac/install-requires.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sagemath-standard

build/pkgs/widgetsnbextension/dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$(PYTHON) | $(PYTHON_TOOLCHAIN) notebook jupyter_core
1+
$(PYTHON) | $(PYTHON_TOOLCHAIN) jupyter_core
22

33
----------
44
All lines of this file are ignored except the first.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.1
1+
3.5.1.p0
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
commit 55bc3c93bf4310d4f4d9d02f2e51d1d65b7f6533 (HEAD -> 7.6.3-sage)
2+
Author: Sylvain Corlay <[email protected]>
3+
Date: Mon Oct 21 01:33:23 2019 +0200
4+
5+
Drop notebook dependency from widgetsnbextension
6+
7+
diff --git a/widgetsnbextension/setup.py b/widgetsnbextension/setup.py
8+
index 866d82eb..88746f95 100644
9+
--- a/setup.py
10+
+++ b/setup.py
11+
@@ -219,13 +219,5 @@ if 'setuptools' in sys.modules:
12+
from setuptools.command.develop import develop
13+
setup_args['cmdclass']['develop'] = js_prerelease(develop, strict=True)
14+
15+
-setuptools_args = {}
16+
-install_requires = setuptools_args['install_requires'] = [
17+
- 'notebook>=4.4.1',
18+
-]
19+
-
20+
-if 'setuptools' in sys.modules:
21+
- setup_args.update(setuptools_args)
22+
-
23+
if __name__ == '__main__':
24+
setup(**setup_args)

0 commit comments

Comments
 (0)