summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDesmond Orton <odesmond21@gmail.com>2021-03-23 15:25:57 -0500
committerGitHub <noreply@github.com>2021-03-23 21:25:57 +0100
commit95ad5b882c990971e74d04261a665ba680f7c4be (patch)
treeb1a19a7b489cc97aade703d398507ec09b0701df
parenta1aec1450b1840733ff41a8ce86cbbf3b3cb0c06 (diff)
downloadspack-95ad5b882c990971e74d04261a665ba680f7c4be.tar.gz
spack-95ad5b882c990971e74d04261a665ba680f7c4be.tar.bz2
spack-95ad5b882c990971e74d04261a665ba680f7c4be.tar.xz
spack-95ad5b882c990971e74d04261a665ba680f7c4be.zip
new package py-pyem (#22425)
* new package py-pyem * Added patch note and removed homepage * Style fixes * Moved the version above deps * Style fix on line 20
-rw-r--r--var/spack/repos/builtin/packages/py-pyem/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyem/package.py b/var/spack/repos/builtin/packages/py-pyem/package.py
new file mode 100644
index 0000000000..e8940b9722
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pyem/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyPyem(PythonPackage):
+ """Project-level Python virtual environment management tool.
+
+ PyEM manages multiple virtual environments local to projects.
+ It provides shortcuts to create, remove, switch between, and run
+ commands against virtual environments created against
+ various Python interpreters."""
+
+ pypi = "pyem/pyem-2.1.0.tar.gz"
+
+ version('2.1.0', sha256='5234a20427ab2813a8a0bf1e9112d4d854b1b0502b3e63d17c1b1a3c4be9340e')
+
+ depends_on('python@3.7:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+
+ # distutils does not support entry_points, setuptools needed to install pyem binary
+ def patch(self):
+ filter_file(r'from distutils.core import setup',
+ 'from setuptools import setup', 'setup.py')