diff options
author | Matthew Krafczyk <krafczyk.matthew@gmail.com> | 2017-01-17 15:31:14 -0600 |
---|---|---|
committer | Matthew Krafczyk <krafczyk.matthew@gmail.com> | 2017-01-17 15:31:14 -0600 |
commit | e2d4dadf33f10ccb5c77d491a0dd5060311516ef (patch) | |
tree | bd82d38658a78d2d907d0e24943adb20e4f7fc5a | |
parent | 67bfb782ef7b06f72fca59f531e55bc1e227fa81 (diff) | |
parent | 209eb83d0dda0b8e5bedf398222015ca331c06d2 (diff) | |
download | spack-e2d4dadf33f10ccb5c77d491a0dd5060311516ef.tar.gz spack-e2d4dadf33f10ccb5c77d491a0dd5060311516ef.tar.bz2 spack-e2d4dadf33f10ccb5c77d491a0dd5060311516ef.tar.xz spack-e2d4dadf33f10ccb5c77d491a0dd5060311516ef.zip |
Merge branch 'update/dev-yt' into yt-dev-working-branch
-rw-r--r-- | var/spack/repos/builtin/packages/py-yt/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-yt/package.py b/var/spack/repos/builtin/packages/py-yt/package.py index 00ea99c625..2735ca8bc1 100644 --- a/var/spack/repos/builtin/packages/py-yt/package.py +++ b/var/spack/repos/builtin/packages/py-yt/package.py @@ -53,6 +53,7 @@ class PyYt(Package): variant("astropy", default=True, description="enable astropy support") variant("h5py", default=True, description="enable h5py support") variant("scipy", default=True, description="enable scipy support") + variant("devmode", default=False, description="enable development mode") extends("python") @@ -68,7 +69,10 @@ class PyYt(Package): depends_on("python @2.7:2.999,3.4:") def install(self, spec, prefix): - setup_py("install", "--prefix=%s" % prefix) + if '+devmode' in spec: + setup_py("develop", "--prefix=%s" % prefix) + else: + setup_py("install", "--prefix=%s" % prefix) self.check_install(spec, prefix) def check_install(self, spec, prefix): |