Skip to content

Commit cfe399d

Browse files
committed
Merge branch 'public/11111-more_support_for_finite_dimensional_modules_and_algebras_with_basis' of git://trac.sagemath.org/sage into t/11111
2 parents 5b1c869 + d4b497a commit cfe399d

File tree

231 files changed

+8317
-3129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+8317
-3129
lines changed

COPYING.txt

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ markupsafe Simplified BSD
8080
mathjax Apache License 2.0
8181
matplotlib Matplotlib License (BSD compatible, see below)
8282
maxima See below
83+
mistune Modified BSD
8384
mpc LGPLv3+
8485
mpfi COPYING is GPLv2, source files state LGPLv2.1+
8586
mpfr LGPLv3+

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build: logs configure
2020
"../$(PIPE)" \
2121
"env SAGE_PARALLEL_SPKG_BUILD='$(SAGE_PARALLEL_SPKG_BUILD)' ./install all 2>&1" \
2222
"tee -a ../logs/install.log"
23-
./sage -b
23+
+./sage -b
2424

2525
# Preemptively download all standard upstream source tarballs.
2626
download:

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sage version 6.6.rc3, released 2015-04-12
1+
Sage version 6.7.beta0, released 2015-04-15

build/deps

+7-3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ all-sage: \
7272
$(INST)/$(MATHJAX) \
7373
$(INST)/$(MATPLOTLIB) \
7474
$(INST)/$(MAXIMA) \
75+
$(INST)/$(MISTUNE) \
7576
$(INST)/$(MPC) \
7677
$(INST)/$(MPFI) \
7778
$(INST)/$(MPFR) \
@@ -316,6 +317,9 @@ $(INST)/$(LIBGAP): $(INST)/$(GAP)
316317
$(INST)/$(JSONSCHEMA): $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)
317318
+$(PIPE) "$(SAGE_SPKG) $(JSONSCHEMA) 2>&1" "tee -a $(SAGE_LOGS)/$(JSONSCHEMA).log"
318319

320+
$(INST)/$(MISTUNE): $(INST)/$(PIP) $(INST)/$(CYTHON)
321+
+$(PIPE) "$(SAGE_SPKG) $(MISTUNE) 2>&1" "tee -a $(SAGE_LOGS)/$(MISTUNE).log"
322+
319323
$(INST)/$(IPYTHON): $(INST)/$(PYTHON) $(INST)/$(JINJA2) $(INST)/$(TORNADO) $(INST)/$(PYZMQ)
320324
+$(PIPE) "$(SAGE_SPKG) $(IPYTHON) 2>&1" "tee -a $(SAGE_LOGS)/$(IPYTHON).log"
321325

@@ -523,7 +527,7 @@ $(INST)/sage: \
523527
$(INST)/csage
524528
if [ -z "$$SAGE_INSTALL_FETCH_ONLY" ]; then \
525529
cd $(SAGE_SRC) && source bin/sage-env && \
526-
$(PIPE) 'time python setup.py install 2>&1' 'tee -a $(SAGE_LOGS)/sage-$(SAGE_VERSION).log' && \
530+
$(PIPE) 'time $(MAKE) sage 2>&1' 'tee -a $(SAGE_LOGS)/sage-$(SAGE_VERSION).log' && \
527531
touch $@; \
528532
fi
529533

@@ -534,8 +538,8 @@ $(INST)/csage: $(INST)/$(SCONS) \
534538
$(INST)/$(PYTHON) \
535539
$(CSAGE_SOURCES)
536540
if [ -z "$$SAGE_INSTALL_FETCH_ONLY" ]; then \
537-
cd $(SAGE_SRC) && source bin/sage-env && cd c_lib && \
538-
$(PIPE) 'time scons -Q install 2>&1' 'tee -a $(SAGE_LOGS)/csage-$(SAGE_VERSION).log' && \
541+
cd $(SAGE_SRC) && source bin/sage-env && \
542+
$(PIPE) 'time $(MAKE) csage 2>&1' 'tee -a $(SAGE_LOGS)/csage-$(SAGE_VERSION).log' && \
539543
touch $@; \
540544
fi
541545

build/install

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ MARKUPSAFE=`newest_version markupsafe`
347347
MATHJAX=`newest_version mathjax`
348348
MATPLOTLIB=`newest_version matplotlib`
349349
MAXIMA=`newest_version maxima`
350+
MISTUNE=`newest_version mistune`
350351
MPC=`newest_version mpc`
351352
MPFI=`newest_version mpfi`
352353
MPFR=`newest_version mpfr`

build/pkgs/cbc/SPKG.txt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
= COIN-OR / CBC =
2+
3+
== Description ==
4+
5+
The Computational Infrastructure for Operations Research (COIN-OR**,
6+
or simply COIN) project is an initiative to spur the development of
7+
open-source software for the operations research community.
8+
9+
The COIN Branch and Cut solver (CBC) is an open-source
10+
mixed-integer program (MIP) solver written in C++. CBC is intended to
11+
be used primarily as a callable library to create customized
12+
branch-and-cut solvers. A basic, stand-alone executable version is
13+
also available. CBC is an active open-source project led by John
14+
Forrest at www.coin-or.org.
15+
16+
== License ==
17+
18+
Eclipse Public License, Version 1.0 (EPL-1.0)
19+
(http://opensource.org/licenses/eclipse-1.0)
20+
21+
== Upstream Contact ==
22+
23+
* John Forrest <[email protected]>
24+
* Robin Lougee-Heimer
25+
26+
== Project Home Page ==
27+
28+
* https://projects.coin-or.org/Cbc

build/pkgs/cbc/checksums.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=cbc-VERSION.tar.gz
2+
sha1=d937d6af1ee8838d44659ebd4cf7bbb1b20372ce
3+
md5=2134576233cc95cdfedc63991a4944ec
4+
cksum=1215468781

build/pkgs/cbc/package-version.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.9.4

build/pkgs/cbc/spkg-install

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
if [ "$SAGE_LOCAL" = "" ]; then
2+
echo >&2 "SAGE_LOCAL undefined ... exiting";
3+
echo >&2 "Maybe run 'sage -sh'?"
4+
exit 1
5+
fi
6+
7+
export LDFLAGS="$LDFLAGS -lz -lbz2"
8+
#export CPPFLAGS="-DHAVE_CLOCK_GETTIME=0"
9+
10+
# See discussion on #12220
11+
#
12+
#-> Mac and Linux behave differently according to the presence of librt, and a
13+
# good way around if to make the computer believe that it does not exist
14+
# locally, or more precisely that it does not contain the clock_gettime
15+
# function. Cbc uses an alternative method to do the job, and it looks like
16+
# all this is required when Cbc solves LP with several threads.
17+
#
18+
cd src &&
19+
sed -i -e "s/clock\_gettime ()/Grrrrrrrrrrrr\ ()/g" Cbc/configure &&
20+
./configure --prefix="$SAGE_LOCAL" "${args[@]}" --enable-cbc-parallel --enable-parallel --enable-gnu-packages --enable-static &&
21+
make &&
22+
make install

build/pkgs/configure/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=beac54655b8d0fbff44d578bcb2b4f676d40b3c9
3-
md5=ac8c8051aebfe3d45bf36bdf498c9b59
4-
cksum=3023873269
2+
sha1=470ca91bf3a1628a646d1ce53572ce8c1228e7e3
3+
md5=46f06fc9a5374cdc595e9e853beb0c18
4+
cksum=1589755960
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
81
1+
86

build/pkgs/cython/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.22
1+
0.22.p1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
commit 9139a7f836151fb5bdb1624a05dce13b1bb17164
2+
Author: Stefan Behnel <[email protected]>
3+
Date: Mon Apr 6 10:45:48 2015 +0200
4+
5+
support NULL as default argument in auto doc transform
6+
7+
diff --git a/Cython/Compiler/AutoDocTransforms.py b/Cython/Compiler/AutoDocTransforms.py
8+
index 775f635..88b0cd8 100644
9+
--- a/Cython/Compiler/AutoDocTransforms.py
10+
+++ b/Cython/Compiler/AutoDocTransforms.py
11+
@@ -51,6 +51,8 @@ class EmbedSignature(CythonTransform):
12+
default_val = arg.default
13+
if not default_val:
14+
return None
15+
+ if isinstance(default_val, ExprNodes.NullNode):
16+
+ return 'NULL'
17+
try:
18+
denv = self.denv # XXX
19+
ctval = default_val.compile_time_value(self.denv)
20+
diff --git a/tests/run/embedsignatures.pyx b/tests/run/embedsignatures.pyx
21+
index 0bfebfe..781cd21 100644
22+
--- a/tests/run/embedsignatures.pyx
23+
+++ b/tests/run/embedsignatures.pyx
24+
@@ -199,6 +199,9 @@ __doc__ = ur"""
25+
26+
>>> print(funcdoc(f_defexpr5))
27+
f_defexpr5(int x=4)
28+
+
29+
+ >>> print(funcdoc(f_charptr_null))
30+
+ f_charptr_null(char *s=NULL) -> char *
31+
"""
32+
33+
cdef class Ext:
34+
@@ -403,6 +406,10 @@ cpdef f_defexpr4(int x = (Ext.CONST1 + FLAG1) * Ext.CONST2):
35+
cpdef f_defexpr5(int x = 2+2):
36+
pass
37+
38+
+cpdef (char*) f_charptr_null(char* s=NULL):
39+
+ return s or b'abc'
40+
+
41+
+
42+
# no signatures for lambda functions
43+
lambda_foo = lambda x: 10
44+
lambda_bar = lambda x: 20

build/pkgs/mistune/SPKG.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
= mistune =
2+
3+
== Description ==
4+
5+
The fastest markdown parser in pure Python
6+
7+
== License ==
8+
9+
BSD License
10+
11+
== Upstream Contact ==
12+
13+
Home Page: https://github.com/lepture/mistune
14+
15+
== Dependencies ==
16+
17+
Python, Cython, Pip
18+
19+

build/pkgs/mistune/checksums.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=mistune-VERSION.tar.gz
2+
sha1=21f0c7bf9bad7fac2e34355ed2c50e48557e2c8d
3+
md5=10a42265bfc7e9ad817fe777a4857821
4+
cksum=492791270
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.5.1

build/pkgs/mistune/spkg-install

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -z "$SAGE_LOCAL" ]; then
4+
echo >&2 "SAGE_LOCAL undefined ... exiting"
5+
echo >&2 "Maybe run 'sage --sh'?"
6+
exit 1
7+
fi
8+
9+
pip install --upgrade --no-dependencies --force-reinstall src/
10+
if [ $? -ne 0 ]; then
11+
echo "Error installing mistune ... exiting"
12+
exit 1
13+
fi

build/pkgs/numpy/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.1
1+
1.8.1.p0

build/pkgs/numpy/spkg-install

+13-6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ for patch in $patches; do
3737
fi
3838
done
3939

40+
set -e
41+
4042
echo "[DEFAULT]" > site.cfg
4143
echo "library_dirs = $SAGE_LOCAL/lib" >> site.cfg
4244
echo "include_dirs = $SAGE_LOCAL/include" >> site.cfg
@@ -58,15 +60,20 @@ export NUMPY_FCONFIG="config_fc --noopt --noarch"
5860

5961
################################################
6062

61-
rm -rf "$SAGE_LOCAL"/lib/python/site-packages/numpy
63+
rm -rf "$SAGE_LOCAL/lib/python/site-packages/numpy"
6264

6365
# Program around a bug in SciPY's distutils.
6466
unset CFLAGS
6567

6668
python setup.py install ${NUMPY_FCONFIG}
6769

68-
if [ $? -ne 0 ]; then
69-
echo "Error building numpy."
70-
exit 1
71-
fi
72-
70+
# Touch all includes such that dependency checking works properly:
71+
# the timestamp of the includes should be *now*, not the time when
72+
# the numpy package was created.
73+
python <<EOF
74+
import os
75+
os.chdir(os.environ["SAGE_ROOT"]) # Import numpy from safe location
76+
import numpy
77+
os.chdir(numpy.get_include())
78+
os.system("touch numpy/*")
79+
EOF

build/pkgs/pari/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8-1369-g0e48e9b
1+
2.8-1369-g0e48e9b.p0

src/Makefile

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
.PHONY: all sage csage clean
2+
3+
# By default, build csage and sage (in this order)
4+
all:
5+
$(MAKE) csage
6+
$(MAKE) sage
7+
8+
sage: sage/libs/pari/auto_gen.pxi sage/ext/interpreters/__init__.py
9+
python setup.py install
10+
11+
csage:
12+
cd c_lib && scons -Q install
13+
114
clean:
215
@echo "Deleting Sage library build artifacts..."
316
rm -f c_lib/.sconsign.dblite
@@ -6,3 +19,13 @@ clean:
619
find c_lib -name '*.dylib' | xargs rm -f
720
rm -rf build
821
find . -name '*.pyc' | xargs rm -f
22+
rm -f sage/libs/pari/auto_*
23+
rm -rf sage/ext/interpreters
24+
25+
26+
# Auto-generated files
27+
sage/libs/pari/auto_gen.pxi: $(SAGE_LOCAL)/share/pari/pari.desc sage_setup/autogen/pari/*.py
28+
python -c "from sage_setup.autogen.pari import rebuild; rebuild()"
29+
30+
sage/ext/interpreters/__init__.py: sage_setup/autogen/interpreters.py
31+
python -c "from sage_setup.autogen.interpreters import rebuild; rebuild('sage/ext/interpreters')"

src/bin/sage

+7-7
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ fi
635635

636636
build_sage() {
637637
maybe_sage_location
638-
sage-build "$@" || exit $?
638+
( cd "$SAGE_SRC" && $MAKE ) || exit $?
639639
}
640640

641641
if [[ "$1" =~ ^--notebook=.* || "$1" =~ ^-n=.* || "$1" =~ ^-notebook=.* ]] ; then
@@ -674,14 +674,12 @@ if [ "$1" = '-grepdoc' -o "$1" = "--grepdoc" -o "$1" = "-search_doc" -o "$1" = "
674674
fi
675675

676676
if [ "$1" = '-b' ]; then
677-
shift
678-
time build_sage "$@"
677+
time build_sage
679678
exit $?
680679
fi
681680

682681
if [ "$1" = '-br' -o "$1" = "--br" ]; then
683-
shift
684-
build_sage "$@"
682+
build_sage
685683
interactive_sage
686684
fi
687685

@@ -691,9 +689,8 @@ if [ "$1" = '-r' ]; then
691689
fi
692690

693691
if [ "$1" = '-ba' -o "$1" = '-ba-force' -o "$1" = '--ba-force' ]; then
694-
shift
695692
( cd "$SAGE_SRC" && make clean )
696-
build_sage "$@"
693+
build_sage
697694
exit $?
698695
fi
699696

@@ -707,6 +704,7 @@ if [ "$1" = '-t' -o "$1" = '-bt' -o "$1" = '-tp' -o "$1" = '-btp' ]; then
707704
fi
708705
SAGE_BANNER="no"
709706
sage_setup
707+
export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
710708
if [ "$1" = '-tp' -o "$1" = '-btp' ]; then
711709
shift
712710
exec sage-runtests -p "$@"
@@ -723,13 +721,15 @@ if [ "$1" = '-tnew' -o "$1" = '-btnew' ]; then
723721
shift
724722
SAGE_BANNER="no"
725723
sage_setup
724+
export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
726725
exec sage-runtests --new "$@"
727726
fi
728727

729728
if [ "$1" = '-testall' -o "$1" = "--testall" ]; then
730729
shift
731730
SAGE_BANNER="no"
732731
sage_setup
732+
export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
733733
exec sage-runtests -a "$@"
734734
fi
735735

src/bin/sage-banner

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
┌────────────────────────────────────────────────────────────────────┐
2-
│ SageMath Version 6.6.rc3, Release Date: 2015-04-12
2+
│ SageMath Version 6.7.beta0, Release Date: 2015-04-15
33
│ Type "notebook()" for the browser-based notebook interface. │
44
│ Type "help()" for help. │
55
└────────────────────────────────────────────────────────────────────┘

src/bin/sage-build

-30
This file was deleted.

0 commit comments

Comments
 (0)