summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authormessense <messense@icloud.com>2021-08-12 22:37:56 +0800
committerGitHub <noreply@github.com>2021-08-12 14:37:56 +0000
commitb008d2b1fe03273156b37bab4f388bc738aaddb2 (patch)
tree06323f4f855dd3d0426ffff17bee6886e9273d07 /var
parent78850f38eb8b361557250f4212e1d92b0ae741d8 (diff)
downloadspack-b008d2b1fe03273156b37bab4f388bc738aaddb2.tar.gz
spack-b008d2b1fe03273156b37bab4f388bc738aaddb2.tar.bz2
spack-b008d2b1fe03273156b37bab4f388bc738aaddb2.tar.xz
spack-b008d2b1fe03273156b37bab4f388bc738aaddb2.zip
py-py-spy: upgrade to 0.3.8 and build with cargo (#25375)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-py-spy/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-py-spy/package.py b/var/spack/repos/builtin/packages/py-py-spy/package.py
index f7c048af10..1e8bc72754 100644
--- a/var/spack/repos/builtin/packages/py-py-spy/package.py
+++ b/var/spack/repos/builtin/packages/py-py-spy/package.py
@@ -3,18 +3,24 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack import *
-class PyPySpy(PythonPackage):
+
+class PyPySpy(Package):
"""A Sampling Profiler for Python."""
homepage = "https://github.com/benfred/py-spy"
- url = "https://github.com/benfred/py-spy/archive/v0.3.3.tar.gz"
+ url = "https://github.com/benfred/py-spy/archive/v0.3.8.tar.gz"
+ version('0.3.8', sha256='9dbfd0ea79ef31a2966891e86cf6238ed3831938cf562e71848e07b7009cf57d')
version('0.3.3', sha256='41454d3d9132da45c72f7574faaff65f40c757720293a277ffa5ec5a4b44f902')
- depends_on('py-setuptools', type='build')
# TODO: uses cargo to download and build dozens of dependencies.
# Need to figure out how to manage these with Spack once we have a
# CargoPackage base class.
depends_on('rust', type='build')
depends_on('unwind')
+
+ def install(self, spec, prefix):
+ cargo = which('cargo')
+ cargo('install', '--root', prefix, '--path', '.')