summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthew Krafczyk <krafczyk.matthew@gmail.com>2016-11-22 14:54:50 -0500
committerMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-01-16 11:26:26 -0500
commit209eb83d0dda0b8e5bedf398222015ca331c06d2 (patch)
tree46f5d94a7251f8d6be51b14cb4ed249339bb3475 /var
parentaa3cc0ea817ffee8ebf292c8f15eb8eb0fc26866 (diff)
downloadspack-209eb83d0dda0b8e5bedf398222015ca331c06d2.tar.gz
spack-209eb83d0dda0b8e5bedf398222015ca331c06d2.tar.bz2
spack-209eb83d0dda0b8e5bedf398222015ca331c06d2.tar.xz
spack-209eb83d0dda0b8e5bedf398222015ca331c06d2.zip
Add a +devmode variant to yt
When specifying +devmode when installing yt, a link to the source directory will be used instead of creating an egg. This eases the development process as changes you make in the yt source directory will be instantly available when building the package as a diy.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-yt/package.py6
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 cf35912191..4e1976eae4 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):