diff options
Diffstat (limited to 'var/spack/packages/py-virtualenv/package.py')
-rw-r--r-- | var/spack/packages/py-virtualenv/package.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/packages/py-virtualenv/package.py b/var/spack/packages/py-virtualenv/package.py new file mode 100644 index 0000000000..9d94c2dcda --- /dev/null +++ b/var/spack/packages/py-virtualenv/package.py @@ -0,0 +1,19 @@ +from spack import * +import shutil + +class PyVirtualenv(Package): + """virtualenv is a tool to create isolated Python environments.""" + homepage = "http://virtualenv.readthedocs.org/projects/virtualenv/" + url = "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz" + + version('1.11.6', 'f61cdd983d2c4e6aeabb70b1060d6f49') + + extends('python') + depends_on('py-setuptools') + + def clean(self): + if os.path.exists('build'): + shutil.rmtree('build') + + def install(self, spec, prefix): + python('setup.py', 'install', '--prefix=%s' % prefix) |