diff --git a/.hgtags b/.hgtags
a
|
b
|
|
2 | 2 | 2aa048110070b81feee35a78471def2c5bed2801 scipy-0.7.p1 |
3 | 3 | a5fb4ead3bf9698fa19114916a9491f774994d14 scipy-0.8 |
4 | 4 | cf97abbde76fcd10340bd35d418edc666e747105 scipy-0.9 |
| 5 | 53edccc45191dd85202b092dd2dcd636e4755235 scipy-0.9.p1 |
diff --git a/SPKG.txt b/SPKG.txt
a
|
b
|
|
26 | 26 | * Python, which in Sage has numerous dependencies |
27 | 27 | * Numpy |
28 | 28 | * Fortran |
| 29 | * GNU patch |
29 | 30 | |
30 | 31 | == Special Update/Build Instructions == |
31 | | * None |
| 32 | * Make sure the patches still apply. |
| 33 | The ones added in the scipy-0.9.p0 spkg (#11886) were all taken from |
| 34 | (unstable) upstream, so can presumably be removed once we upgrade to |
| 35 | a new stable version. |
32 | 36 | |
33 | 37 | == Changelog == |
34 | 38 | |
35 | | == scipy-0.9.p0 (John Palmieri, 30 Sept 2011) == |
| 39 | === scipy-0.9.p1 (Leif Leonhardy, November 1st 2011) === |
| 40 | * #11886: Reviewer changes (mostly cosmetic). |
| 41 | |
| 42 | === scipy-0.9.p0 (John Palmieri, 30 Sept 2011) === |
36 | 43 | * #11886: get scipy to build on OS X 10.7 Lion, using the patches from |
37 | 44 | https://github.com/scipy/scipy/commit/effa6f68f8ada57b79864852b609ff06d2527306 |
38 | 45 | |
39 | | == scipy-0.9 (F. Bissey; 16 March 2011) === |
| 46 | === scipy-0.9 (F. Bissey; 16 March 2011) === |
40 | 47 | * updated the source to 0.9.0. No patches needed. |
41 | 48 | |
42 | | == scipy-0.8 (S. Reiterer, F. Bissey, D. Kirkby, J. H. Palmieri; 14 October 2010) === |
| 49 | === scipy-0.8 (S. Reiterer, F. Bissey, D. Kirkby, J. H. Palmieri; 14 October 2010) === |
43 | 50 | * #9808 Upgrade to scipy 0.8. |
44 | 51 | * Deleted outdated patches |
45 | 52 | * spkg install changed by F. Bissey, because g95 makes trouble on OS X. |
diff --git a/spkg-install b/spkg-install
old mode 100644
new mode 100755
a
|
b
|
|
1 | 1 | #!/usr/bin/env bash |
2 | | # These flags confuse numpy's distutils. In particular, |
| 2 | |
| 3 | if [ -z "$SAGE_LOCAL" ]; then |
| 4 | echo >&2 "Error: SAGE_LOCAL undefined - exiting..." |
| 5 | echo >&2 "Maybe run 'sage -sh'?" |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | # These flags confuse numpy's distutils. In particular, |
3 | 10 | # if they are set empty bad things happen. |
| 11 | unset CFLAGS CXXFLAGS SHAREDFLAGS |
| 12 | echo "Note: CFLAGS, CXXFLAGS and SHAREDFLAGS are taken from distutils," |
| 13 | echo " so their current settings are ignored." |
4 | 14 | |
5 | | unset CFLAGS CXXFLAGS SHAREDFLAGS |
6 | | |
7 | | if [ `uname` = "Darwin" ]; then |
| 15 | if [ "$UNAME" = "Darwin" ]; then |
8 | 16 | unset ATLAS |
9 | 17 | unset BLAS |
10 | 18 | unset LAPACK |
… |
… |
|
23 | 31 | export F90="$SAGE_LOCAL/bin/sage_fortran" |
24 | 32 | export F95="$SAGE_LOCAL/bin/sage_fortran" |
25 | 33 | |
26 | | |
27 | | # This avoid problems on some systems -- until we officially |
28 | | # support umfpack (which we will likely do, since cvxopt |
29 | | # I think includes it). |
30 | | # http://projects.scipy.org/pipermail/scipy-user/2006-July/008661.html |
31 | | # (Currently swig gets invoked by scipy when building the umfpack interace, |
| 34 | # This avoids problems on some systems -- until we officially |
| 35 | # support umfpack (which we will likely do, since cvxopt I think includes it): |
| 36 | UMFPACK="None"; export UMFPACK |
| 37 | # See http://projects.scipy.org/pipermail/scipy-user/2006-July/008661.html |
| 38 | # (Currently SWIG gets invoked by scipy when building the umfpack interface, |
32 | 39 | # which is bad.) |
33 | 40 | |
34 | | UMFPACK="None"; export UMFPACK |
| 41 | |
| 42 | # Remove previous installation (if any): |
35 | 43 | rm -rf "$SAGE_LOCAL"/lib/python/site-packages/scipy |
36 | 44 | |
37 | 45 | cd src/ |
38 | 46 | |
| 47 | # Apply patches (if any): |
39 | 48 | for patch in ../patches/*.patch; do |
40 | 49 | patch -p1 <"$patch" |
41 | 50 | if [ $? -ne 0 ]; then |
42 | | echo >&2 "Error applying '$patch'" |
| 51 | echo >&2 "Error applying '$patch'." |
43 | 52 | exit 1 |
44 | 53 | fi |
45 | 54 | done |
46 | 55 | |
| 56 | # Build: |
| 57 | python setup.py build |
47 | 58 | if [ $? -ne 0 ]; then |
48 | | echo "Error patching setup.py" |
49 | | exit 1 |
50 | | fi |
51 | | |
52 | | # Build |
53 | | python setup.py build |
54 | | if [ $? -ne 0 ]; then |
55 | | echo "Error building scipy." |
| 59 | echo >&2 "Error building scipy." |
56 | 60 | exit 1 |
57 | 61 | fi |
58 | 62 | |
59 | | # Intall |
60 | | python setup.py install |
| 63 | # Install: |
| 64 | python setup.py install |
61 | 65 | if [ $? -ne 0 ]; then |
62 | | echo "Error installing scipy." |
| 66 | echo >&2 "Error installing scipy." |
63 | 67 | exit 1 |
64 | 68 | fi |
65 | | |