summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-meep/package.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-meep/package.py b/var/spack/repos/builtin/packages/py-meep/package.py
index 9582c81878..a8e11a12ff 100644
--- a/var/spack/repos/builtin/packages/py-meep/package.py
+++ b/var/spack/repos/builtin/packages/py-meep/package.py
@@ -62,9 +62,10 @@ class PyMeep(Package):
spec['meep'].prefix.lib
]
+ include_flags = '-I{0}'.format(','.join(include_dirs))
+ library_flags = '-L{0}'.format(','.join(library_dirs))
+
python(setup, 'clean', '--all')
- python(setup, 'build_ext',
- '-I{0}'.format(','.join(include_dirs)),
- '-L{0}'.format(','.join(library_dirs)))
+ python(setup, 'build_ext', include_flags, library_flags)
python(setup, 'install', '--prefix={0}'.format(prefix))
- python(setup, 'bdist')
+ python(setup, 'bdist', include_flags, library_flags)