py-python-meep: remove install_options (#28461)
* py-python-meep: remove install_options * Remove unused import
This commit is contained in:
parent
e6ba8eb060
commit
d6c841f67c
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
@ -38,31 +36,3 @@ class PyPythonMeep(PythonPackage):
|
|||||||
def patch(self):
|
def patch(self):
|
||||||
if '+mpi' in self.spec:
|
if '+mpi' in self.spec:
|
||||||
copy('setup-mpi.py', 'setup.py')
|
copy('setup-mpi.py', 'setup.py')
|
||||||
|
|
||||||
def install_options(self, spec, prefix):
|
|
||||||
include_dirs = [
|
|
||||||
spec['meep'].prefix.include,
|
|
||||||
os.path.join(
|
|
||||||
spec['py-numpy'].prefix,
|
|
||||||
spec['python'].package.include
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
library_dirs = [
|
|
||||||
spec['meep'].prefix.lib
|
|
||||||
]
|
|
||||||
|
|
||||||
if '+mpi' in spec:
|
|
||||||
include_dirs.append(spec['mpi'].prefix.include)
|
|
||||||
library_dirs.append(spec['mpi'].prefix.lib)
|
|
||||||
|
|
||||||
include_flags = '-I{0}'.format(','.join(include_dirs))
|
|
||||||
library_flags = '-L{0}'.format(','.join(library_dirs))
|
|
||||||
|
|
||||||
# FIXME: For some reason, this stopped working.
|
|
||||||
# The -I and -L are no longer being properly forwarded to setup.py:
|
|
||||||
# meep_common.i:87: Error: Unable to find 'meep/mympi.hpp'
|
|
||||||
# meep_common.i:88: Error: Unable to find 'meep/vec.hpp'
|
|
||||||
# meep_common.i:89: Error: Unable to find 'meep.hpp'
|
|
||||||
|
|
||||||
return [include_flags, library_flags]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user