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

Commit 7f365e3

Browse files
committed
Merge tag '7.4.beta2' into t/20218/pip-install
SageMath version 7.4.beta2
2 parents 55f9e9d + 5cd62cb commit 7f365e3

File tree

404 files changed

+7038
-2760
lines changed

Some content is hidden

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

404 files changed

+7038
-2760
lines changed

COPYING.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ at the notice in config.guess or ltmain.sh.)
801801

802802
The atomic_ops library contains some code that is covered by the GNU General
803803
Public License, but is not needed by, nor linked into the collector library.
804-
It is included here only becuase the atomic_ops distribution is, for
804+
It is included here only because the atomic_ops distribution is, for
805805
simplicity, included in its entirety.
806806

807807
================================================================================

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 7.4.beta0, Release Date: 2016-08-10
1+
SageMath version 7.4.beta2, Release Date: 2016-08-26

build/pkgs/bliss/dependencies

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# no dependencies
2+
3+
----------
4+
All lines of this file are ignored except the first.
5+
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.

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=60850f1ee56240b1a41aac70b3db92ddae396a55
3-
md5=f7b731a66537ef5db10207172ee94fd8
4-
cksum=66728830
2+
sha1=3d13a8f9dcaef6c048d0d21f91338b0b3d0fe125
3+
md5=63fc727ca070844c580b5a722d177cb1
4+
cksum=3010448970
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
177
1+
179

build/pkgs/ecm/package-version.txt

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

build/pkgs/ecm/patches/cygwin.patch

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Make sure the assembly routines use the appropriate calling convention
2+
for Windows in Cygwin as well. See https://trac.sagemath.org/ticket/21223
3+
diff -ruN a/configure.in b/configure.in
4+
--- a/configure.in 2016-08-11 13:51:46.869520300 +0200
5+
+++ b/configure.in 2016-08-11 13:52:46.240830400 +0200
6+
@@ -256,7 +256,7 @@
7+
GMP_ASM_TYPE
8+
9+
case $host in
10+
- *-*-mingw32) GMP_DEFINE([WINDOWS64_ABI], 1)
11+
+ *-*-mingw32|*cygwin*) GMP_DEFINE([WINDOWS64_ABI], 1)
12+
AC_DEFINE([WINDOWS64_ABI], 1,[Define to 1 if x86_64 mulredc*() functions should be called with Windows ABI]);;
13+
*) ;;
14+
esac
15+
diff -ruN a/configure b/configure
16+
--- a/configure 2016-08-11 13:51:46.936572300 +0200
17+
+++ b/configure 2016-08-11 13:53:31.281801500 +0200
18+
@@ -12957,7 +12957,7 @@
19+
20+
21+
case $host in
22+
- *-*-mingw32)
23+
+ *-*-mingw32|*cygwin*)
24+
echo 'define(<WINDOWS64_ABI>, <1>)' >>$gmp_tmpconfigm4
25+
26+

build/pkgs/flask_babel/dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$(PYTHON) | pip flask speaklater
1+
$(PYTHON) | pip flask speaklater babel
22

33
----------
44
All lines of this file are ignored except the first.

build/pkgs/fricas/SPKG.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ http://fricas.sourceforge.net/
1414

1515
== Dependencies ==
1616

17-
Put a bulleted list of dependencies here:
17+
* ecl
1818

19-
* ecl
19+
== Special Update/Build Instructions ==
2020

21+
* uffi.patch: see #21209 for details.

build/pkgs/fricas/checksums.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tarball=fricas-VERSION.tar.bz2
2-
sha1=689b3e474579655b76686a56a1928ef411cb179b
3-
md5=ba4f3927d93f49b0d866e5e80fc5bf18
4-
cksum=2927195574
1+
tarball=fricas-VERSION-full.tar.bz2
2+
sha1=f476a535ba189658cbc6055a951867c0c23787e4
3+
md5=1850f25249ed238203b9519c522d1795
4+
cksum=2721391206

build/pkgs/fricas/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.4
1+
1.2.7

build/pkgs/fricas/patches/uffi.patch

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
--- a/lisp/fricas-lisp.lisp
2+
+++ b/lisp/fricas-lisp.lisp
3+
@@ -556,10 +556,10 @@ with this hack and will try to convince the GCL crowd to fix this.
4+
(dolist (el strs)
5+
(setf wrapper `(FFI:WITH-CSTRING ,el ,wrapper)))
6+
(setf wrapper `(defun ,name ,largs ,wrapper))
7+
- `(progn (uffi:def-function (,c-name ,sym)
8+
+ `(progn (ffi:def-function (,c-name ,sym)
9+
,fargs :returning ,l-ret)
10+
,wrapper))
11+
- `(uffi:def-function (,c-name ,name)
12+
+ `(ffi:def-function (,c-name ,name)
13+
,fargs :returning ,l-ret)))))
14+
15+
(defmacro fricas-foreign-call (name c-name return-type &rest arguments)
16+
@@ -788,14 +788,14 @@ with this hack and will try to convince the GCL crowd to fix this.
17+
#+:ecl
18+
(progn
19+
20+
-(uffi:def-function ("sock_get_string_buf" sock_get_string_buf_wrapper)
21+
+(ffi:def-function ("sock_get_string_buf" sock_get_string_buf_wrapper)
22+
((purpose :int) (buf (:array :unsigned-char 10000)) (len :int))
23+
:returning :void)
24+
25+
(defun |sockGetStringFrom| (purpose)
26+
- (uffi:with-foreign-object (buf '(:array :unsigned-char 10000))
27+
+ (ffi:with-foreign-object (buf '(:array :unsigned-char 10000))
28+
(sock_get_string_buf_wrapper purpose buf 10000)
29+
- (uffi:convert-from-foreign-string buf)))
30+
+ (ffi:convert-from-foreign-string buf)))
31+
32+
)
33+
34+
@@ -825,7 +825,7 @@ with this hack and will try to convince the GCL crowd to fix this.
35+
(LISP::defentry |makedir| (LISP::string) (LISP::int "makedir")))
36+
37+
#+:ecl
38+
-(uffi:def-function ("directoryp" raw_file_kind)
39+
+(ffi:def-function ("directoryp" raw_file_kind)
40+
((arg :cstring))
41+
:returning :int)
42+
#+:ecl
43+
@@ -834,7 +834,7 @@ with this hack and will try to convince the GCL crowd to fix this.
44+
(raw_file_kind cname)))
45+
46+
#+:ecl
47+
-(uffi:def-function ("makedir" raw_makedir)
48+
+(ffi:def-function ("makedir" raw_makedir)
49+
((arg :cstring))
50+
:returning :int)
51+

build/pkgs/fricas/spkg-install

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
cd src
44

5+
cd src
6+
for patch in ../../patches/*.patch; do
7+
patch -p1 <"$patch"
8+
if [ $? -ne 0 ]; then
9+
echo >&2 "Error applying '$patch'"
10+
exit 1
11+
fi
12+
done
13+
cd ..
14+
515
./configure --prefix="$SAGE_LOCAL" \
616
--libdir="$SAGE_LOCAL/lib" \
717
--with-lisp=ecl

build/pkgs/linbox/spkg-install

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ if [ "$SAGE64" = yes ]; then
4848
fi
4949

5050
# C++11 workaround https://trac.sagemath.org/ticket/20926
51-
CXXFLAGS="$CXXFLAGS -std=c++98"
51+
if [ "$UNAME" = CYGWIN ]; then
52+
# Special case for Cygwin https://trac.sagemath.org/ticket/21185
53+
CXXFLAGS="$CXXFLAGS -std=gnu++98"
54+
else
55+
CXXFLAGS="$CXXFLAGS -std=c++98"
56+
fi
5257

5358
###############################################################################
5459
# Configure, build and install LinBox:

build/pkgs/matplotlib/SPKG.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The matplotlib mailing lists: see http://sourceforge.net/projects/matplotlib
5353
matplotlib versions 0.99.3 and 1.0.0. Sage reads the version
5454
number VER by running
5555

56-
python -c 'import matplotlib; print matplotlib.__version__'
56+
python -c 'import matplotlib; print(matplotlib.__version__)'
5757

5858
Note that at the end of the install process for matplotlib, the
5959
spkg-install file prints a message showing what MPLCONFIGDIR will

build/pkgs/matplotlib/make-setup-config.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ConfigParser
1+
from six.moves import configparser as ConfigParser
22
import os
33

44
config = ConfigParser.SafeConfigParser()
@@ -14,17 +14,17 @@
1414
# will not even try, even if we could. See trac #5301.
1515
#####################################################################
1616

17-
print "NOTE: Set SAGE_MATPLOTLIB_GUI to anything but 'no' to try to build the Matplotlib GUI."
17+
print("NOTE: Set SAGE_MATPLOTLIB_GUI to anything but 'no' to try to build the Matplotlib GUI.")
1818

1919
graphical_backend='False'
2020
if os.environ.get('SAGE_MATPLOTLIB_GUI', 'no').lower() != 'no':
2121
graphical_backend = 'auto'
2222

23-
if graphical_backend=='auto':
24-
print "Building graphical backends. WARNING: This may causing some annoying and confusing behavior"
25-
print "when using Sage + pylab, at least on OS X."
23+
if graphical_backend == 'auto':
24+
print("Building graphical backends. WARNING: This may causing some annoying and confusing behavior")
25+
print("when using Sage + pylab, at least on OS X.")
2626
else:
27-
print "Not building any matplotlib graphical backends."
27+
print("Not building any matplotlib graphical backends.")
2828

2929
config.add_section('gui_support')
3030
for backend in ('gtk', 'gtkagg', 'tkagg', 'wxagg', 'macosx', 'windowing'):

build/pkgs/matplotlib/spkg-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ $? -ne 0 ]; then
3636
fi
3737

3838
# Print value of MPLCONFIGDIR
39-
VERSION=`python -c 'import pkg_resources; print pkg_resources.get_distribution("matplotlib").version'`
39+
VERSION=`python -c 'import pkg_resources; print(pkg_resources.get_distribution("matplotlib").version)'`
4040
echo
4141
echo "When Sage runs, MPLCONFIGDIR will be set to '\$DOT_SAGE/matplotlib-$VERSION'."
4242
echo

build/pkgs/pari/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=pari-VERSION.tar.gz
2-
sha1=a936e0ed661c8e453578f3c129c3a454e2039e3e
3-
md5=59f2e4c3c51f7652182400489cd76e6a
4-
cksum=1366291737
2+
sha1=efd1eb6b8d87066b2b9f3b2c38ecb30bbfdb48d2
3+
md5=f3f3342913a3b3b306970b3462f4d47d
4+
cksum=1553747906

build/pkgs/pari/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8-2771-gb70b447.p0
1+
2.8.0.alpha.p0

build/pkgs/polymake/SPKG.txt

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
= Polymake =
2+
3+
== Description ==
4+
5+
polymake is open source software for research in polyhedral
6+
geometry. It deals with polytopes, polyhedra and fans as
7+
well as simplicial complexes, matroids, graphs, tropical
8+
hypersurfaces, and other objects. Supported platforms
9+
include various flavors of Linux, Free BSD and Mac OS.
10+
11+
== License ==
12+
13+
* GPL v3
14+
15+
== Upstream Contact ==
16+
17+
* https://polymake.org/
18+
19+
== Dependencies ==
20+
21+
Polymake needs a working installation of Perl, including its shared
22+
library and some modules (XML::Writer XML::LibXML XML::LibXSLT).
23+
These are not provided by a Sage package. Sage does install the
24+
Term::Readline::Gnu module, however, when you install polymake.
25+
26+
On Ubuntu, use:
27+
sudo apt-get install libxml-libxslt-perl libxml-writer-perl libxml2-dev libperl-dev libncurses-dev
28+
29+
On Fedora 23, use:
30+
sudo yum install perl-ExtUtils-Embed
31+
32+
On Mac OS X, all modules (except for Term::Readline::Gnu) appear to be
33+
standard.
34+
35+
36+
Several Sage packages should be installed before installing the
37+
polymake package to give a more featureful Polymake installation:
38+
sage -i 4ti2 latte_int topcom
39+
40+
Also this old-style Sage package can be installed for a more
41+
featureful Polymake installation:
42+
sage -p qhull
43+
44+
Software that would need to be installed manually (no Sage package
45+
available) for a more featureful Polymake installation:
46+
azove,
47+
porta,
48+
vinci,
49+
SplitsTree4,
50+
bliss (needs Debian patches; can't use the existing old-style Sage package)
51+
52+
Information on missing Polymake prerequisites after installing
53+
polymake:
54+
$ sage -sh
55+
(sage-sh) $ polymake
56+
polytope> show_unconfigured;
57+
58+
== Debugging polymake install problems ==
59+
60+
# apt-get install libdevel-trace-perl
61+
$ cd src
62+
$ perl -d:Trace support/configure.pl

build/pkgs/polymake/checksums.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=polymake-VERSION-minimal.tar.bz2
2+
sha1=0c96b4f2c9e56d72131166d2c9a7f25fffa99107
3+
md5=c1f5d71cdd86d0339c3e642494d6ac67
4+
cksum=3739642796

build/pkgs/polymake/dependencies

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$(INST)/$(SAGE_MP_LIBRARY) bliss cddlib lrslib perl_term_readline_gnu
2+
3+
----------
4+
All lines of this file are ignored except the first.
5+
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0r2

build/pkgs/polymake/spkg-install

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
3+
die () {
4+
echo "$@" 1>&2
5+
exit 1
6+
}
7+
8+
cd src
9+
10+
for patch in ../patches/*.patch; do
11+
[ -r "$patch" ] || continue # Skip non-existing or non-readable patches
12+
patch -p1 <"$patch"
13+
if [ $? -ne 0 ]; then
14+
echo >&2 "Error applying '$patch'"
15+
exit 1
16+
fi
17+
done
18+
19+
more_configure_options=
20+
21+
if [ `uname` = Darwin ]; then
22+
more_configure_options="$more_configure_options --without-fink"
23+
# Setting the following variable changes the output of "perl
24+
# -MExtUtils::Embed -e ldopts" and "perl -MExtUtils::Embed -e ccflags"
25+
# so that they do not contain -arch flags.
26+
export ARCHFLAGS=
27+
fi
28+
29+
./configure --without-java \
30+
--without-javaview \
31+
--prefix="$SAGE_LOCAL" \
32+
--exec-prefix="$SAGE_LOCAL" \
33+
--includedir="$SAGE_LOCAL"/include \
34+
--bindir="$SAGE_LOCAL"/bin \
35+
--libdir="$SAGE_LOCAL"/lib \
36+
$more_configure_options || die "Error configuring Polymake"
37+
make || die "Error building polymake"
38+
# Remove old stuff. Polymake loads whatever it finds in
39+
# its installation directory.
40+
rm -Rf $SAGE_LOCAL/lib/polymake
41+
make install || die "Error installing polymake"
42+
# Reconfigure Polymake's rules.
43+
# This modifies ~/.polymake/customize.pl
44+
echo "exit;" | polymake --reconfigure - || die "Error calling 'polymake --reconfigure'"

build/pkgs/polymake/type

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
experimental
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.1.p0
1+
2.6.1.p1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Required to build on Cygwin due to a bug (?) in Cygwin (specifically newlib)
2+
whereas the removed lines themselves were added apparently to fix building on
3+
BSDs:
4+
5+
https://github.com/dlitz/pycrypto/commit/574ffac9f5d290933e8c0678c430fa8eabc962d0
6+
diff -u a/setup.py b/setup.py
7+
--- a/setup.py 2013-10-14 23:38:10.000000000 +0200
8+
+++ b/setup.py 2016-07-06 15:10:54.271597100 +0200
9+
@@ -114,13 +114,6 @@
10+
11+
# Tweak compiler options
12+
if self.compiler.compiler_type in ('unix', 'cygwin', 'mingw32'):
13+
- # Tell GCC to compile using the C99 standard.
14+
- self.__add_compiler_option("-std=c99")
15+
-
16+
- # ... but don't tell that to the aCC compiler on HP-UX
17+
- if self.compiler.compiler_so[0] == 'cc' and sys.platform.startswith('hp-ux'):
18+
- self.__remove_compiler_option("-std=c99")
19+
-
20+
# Make assert() statements always work
21+
self.__remove_compiler_option("-DNDEBUG")
22+
23+
Common subdirectories: a/src and b/src

build/pkgs/pycrypto/spkg-install

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ for patch in ../patches/*.patch; do
1919
fi
2020
done
2121

22+
if [ "$UNAME" = "CYGWIN" ]; then
23+
for patch in ../patches/cygwin/*.patch; do
24+
[ -r "$patch" ] || continue # Skip non-existing or non-readable patches
25+
patch -p1 <"$patch"
26+
if [ $? -ne 0 ]; then
27+
echo >&2 "Error applying '$patch'"
28+
exit 1
29+
fi
30+
done
31+
fi
32+
2233
if [ "$SAGE_DEBUG" = "yes" ]; then
2334
echo "Building a debug version of PyCrypto."
2435
export CFLAGS="-O0 -g $CFLAGS"

0 commit comments

Comments
 (0)