summaryrefslogtreecommitdiff
path: root/math/py-numeric/files
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-numeric/files')
-rw-r--r--math/py-numeric/files/patch-Makefile25
-rw-r--r--math/py-numeric/files/patch-setup.py23
2 files changed, 48 insertions, 0 deletions
diff --git a/math/py-numeric/files/patch-Makefile b/math/py-numeric/files/patch-Makefile
new file mode 100644
index 000000000000..6512ba0c12ad
--- /dev/null
+++ b/math/py-numeric/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile 2000/08/31 17:23:34 1.1
++++ Makefile 2000/08/31 17:35:38
+@@ -5,8 +5,20 @@
+ @echo "Currently that is:"
+ @which python
+
+-all: MA RNG FFT
++all:: main MA RNG FFT
++
++main:
++ python setup.py build
+
+ MA RNG FFT:
+- (cd Packages/$@; python setup.py install)
++ (cd Packages/$@; mkdir -p Include ; ln -sf ../../../Include Include/Numeric; python setup.py build)
++
++install:: main_install MA_install RNG_install FFT_install
++
++main_install:
++ python setup.py install
++
++MA_install RNG_install FFT_install:
++ (cd Packages/${@:S/_install//}; python setup.py install)
++
+
diff --git a/math/py-numeric/files/patch-setup.py b/math/py-numeric/files/patch-setup.py
new file mode 100644
index 000000000000..69822451bcce
--- /dev/null
+++ b/math/py-numeric/files/patch-setup.py
@@ -0,0 +1,23 @@
+--- setup.py.orig Mon Aug 28 13:49:52 2000
++++ setup.py Thu Aug 31 17:48:46 2000
+@@ -21,9 +21,17 @@
+
+
+ # Locate the directories in which the BLAS and LAPACK are located.
+-# if you know where they are, put it here:
+-BLASLIBDIR = None
+-LAPACKLIBDIR = None
++# if you know where they are, pass them via your environment or edit
++# the except: case.
++try:
++ BLASLIBDIR = os.environ['BLASLIBDIR']
++except KeyError:
++ BLASLIBDIR = None
++try:
++ LAPACKLIBDIR = os.environ['LAPACKLIBDIR']
++except KeyError:
++ LAPACKLIBDIR = None
++
+ # places to look and what to look for
+ POSSIBLE_DIRECTORIES = ['/usr/local/lib', '/usr/lib', 'lapack_lite']
+ if sys.platform == 'win32':