summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/python/package.py
diff options
context:
space:
mode:
authorGlenn Johnson <glennpj@gmail.com>2016-04-26 12:32:14 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2016-04-26 10:32:14 -0700
commitdfc0efa8edc3ccdb8e8c4b0504c5fe77e298a9fd (patch)
tree15c17349488366f5722b623f5b87541ea392e8b2 /var/spack/repos/builtin/packages/python/package.py
parentb56bfcea968fb6fb2a81a08804258300178c4b05 (diff)
downloadspack-dfc0efa8edc3ccdb8e8c4b0504c5fe77e298a9fd.tar.gz
spack-dfc0efa8edc3ccdb8e8c4b0504c5fe77e298a9fd.tar.bz2
spack-dfc0efa8edc3ccdb8e8c4b0504c5fe77e298a9fd.tar.xz
spack-dfc0efa8edc3ccdb8e8c4b0504c5fe77e298a9fd.zip
Put f2py of py-numpy in python ignore list. (#827)
There are many python packages that depend on py-numpy. Each one of those will have a copy of f2py that will need to be put in the ignore list for activation. Thise PR adds f2py to the ignore list in the python package.py file so that it does not have to be done for each package that depends on py-numpy. This follows the model of what is done for py-setuptools. This PR also removes the f2py ignore expression for python packages that were using it as it is no longer needed in the individual packages.
Diffstat (limited to 'var/spack/repos/builtin/packages/python/package.py')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index f5237c3b57..f7e1d94567 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -151,6 +151,8 @@ class Python(Package):
patterns.append(r'setuptools\.pth')
patterns.append(r'bin/easy_install[^/]*$')
patterns.append(r'setuptools.*egg$')
+ if ext_pkg.name != 'py-numpy':
+ patterns.append(r'bin/f2py$')
return match_predicate(ignore_arg, patterns)