Set proper deptypes for certain build systems (#3866)
* Set proper deptypes for certain build systems * Add depends_on to namespace
This commit is contained in:
parent
9bd6d21322
commit
e12f2c1855
@ -27,7 +27,7 @@
|
||||
import os
|
||||
|
||||
from llnl.util.filesystem import join_path
|
||||
from spack.directives import extends
|
||||
from spack.directives import depends_on, extends
|
||||
from spack.package import PackageBase, run_after
|
||||
from spack.util.executable import Executable
|
||||
|
||||
@ -64,6 +64,8 @@ class PerlPackage(PackageBase):
|
||||
|
||||
extends('perl')
|
||||
|
||||
depends_on('perl', type=('build', 'run'))
|
||||
|
||||
def configure_args(self):
|
||||
"""Produces a list containing the arguments that must be passed to
|
||||
:py:meth:`~.PerlPackage.configure`. Arguments should not include
|
||||
@ -85,7 +87,7 @@ def configure(self, spec, prefix):
|
||||
self.build_executable = inspect.getmodule(self).make
|
||||
elif os.path.isfile('Build.PL'):
|
||||
self.build_method = 'Build.PL'
|
||||
self.build_executable = Executable(
|
||||
self.build_executable = Executable(
|
||||
join_path(self.stage.source_path, 'Build'))
|
||||
else:
|
||||
raise RuntimeError('Unknown build_method for perl package')
|
||||
|
@ -26,7 +26,7 @@
|
||||
import inspect
|
||||
import os
|
||||
|
||||
from spack.directives import extends
|
||||
from spack.directives import depends_on, extends
|
||||
from spack.package import PackageBase, run_after
|
||||
|
||||
from llnl.util.filesystem import working_dir
|
||||
@ -114,6 +114,8 @@ def configure(self, spec, prefix):
|
||||
|
||||
extends('python')
|
||||
|
||||
depends_on('python', type=('build', 'run'))
|
||||
|
||||
def setup_file(self):
|
||||
"""Returns the name of the setup file to use."""
|
||||
return 'setup.py'
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
import inspect
|
||||
|
||||
from spack.directives import extends
|
||||
from spack.directives import depends_on, extends
|
||||
from spack.package import PackageBase, run_after
|
||||
|
||||
|
||||
@ -47,6 +47,8 @@ class RPackage(PackageBase):
|
||||
|
||||
extends('r')
|
||||
|
||||
depends_on('r', type=('build', 'run'))
|
||||
|
||||
def install(self, spec, prefix):
|
||||
"""Installs an R package."""
|
||||
inspect.getmodule(self).R(
|
||||
|
Loading…
Reference in New Issue
Block a user