diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-01 18:49:19 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-01 18:49:19 +0000 |
| commit | 1523527acdee7a36786b45b7f7cf0311acf09e7b (patch) | |
| tree | 415796f7bed847004d1dbdebc9a535dc0844a990 /math/py-pynleq2/files/patch-setup.py | |
| parent | audio/wmmp: Update to 0.12.4 (diff) | |
New port: math/py-pynleq2: Python binding for NLEQ2 algorithm's fortran implementation
Notes
Notes:
svn path=/head/; revision=466175
Diffstat (limited to 'math/py-pynleq2/files/patch-setup.py')
| -rw-r--r-- | math/py-pynleq2/files/patch-setup.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/math/py-pynleq2/files/patch-setup.py b/math/py-pynleq2/files/patch-setup.py new file mode 100644 index 000000000000..036483b8c3fe --- /dev/null +++ b/math/py-pynleq2/files/patch-setup.py @@ -0,0 +1,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', 'flang', 'execinfo'] ++ , library_dirs=['../.fbuild', '/usr/local/flang/lib']) + ] + + PYNLEQ2_RELEASE_VERSION = os.environ.get('PYNLEQ2_RELEASE_VERSION', '') |
