summaryrefslogtreecommitdiff
path: root/math/py-pynleq2/files/patch-setup.py
blob: c8e27f0124a8ccb443be2331708b2fbb7005ec1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- setup.py.orig	2015-10-20 14:54:08 UTC
+++ setup.py
@@ -75,19 +75,21 @@ if len(sys.argv) > 1 and '--help' not in
 
     for src, md5sum in zip(sources, md5sums):
         srcpath = os.path.join('nleq2', src)
-        if not os.path.exists(srcpath):
+        if False and not os.path.exists(srcpath):
             NLEQ2_URL = os.environ.get('PYNLEQ2_NLEQ2_ROOT_URL', None)
             if NLEQ2_URL:
                 download(NLEQ2_URL+src, srcpath)
             else:
                 fmtstr = "Could not find: %s ($PYNLEQ2_NLEQ2_ROOT_URL not set)"
                 raise ValueError(fmtstr % src)
-        if md5_of_file(srcpath).hexdigest() != md5sum:
+        if False and md5_of_file(srcpath).hexdigest() != md5sum:
             raise ValueError("Mismatching MD5 sum for %s" % srcpath)
 
     ext_modules = [
         Extension('pynleq2.nleq2', [os.path.join('nleq2', f)
-                                    for f in ('nleq2.pyf',) + sources])
+                                    for f in ('nleq2.pyf',)]
+                                   , libraries=['ff', 'execinfo']
+                                   , library_dirs=['../.fbuild'])
     ]
 
 PYNLEQ2_RELEASE_VERSION = os.environ.get('PYNLEQ2_RELEASE_VERSION', '')