summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDax Lynch <81718016+DaxLynch@users.noreply.github.com>2023-07-07 18:02:21 -0700
committerGitHub <noreply@github.com>2023-07-07 20:02:21 -0500
commitb2dcd9bd42e98188c631074ed8867489e063d85e (patch)
tree1e8608015404e9843b38c7cb97b05c25c4cee6c7
parent2dc76248d3154c500fa16edfbc47801d122c7859 (diff)
downloadspack-b2dcd9bd42e98188c631074ed8867489e063d85e.tar.gz
spack-b2dcd9bd42e98188c631074ed8867489e063d85e.tar.bz2
spack-b2dcd9bd42e98188c631074ed8867489e063d85e.tar.xz
spack-b2dcd9bd42e98188c631074ed8867489e063d85e.zip
PyNVTX: added new package (#38763)
-rw-r--r--var/spack/repos/builtin/packages/py-pynvtx/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pynvtx/package.py b/var/spack/repos/builtin/packages/py-pynvtx/package.py
new file mode 100644
index 0000000000..2f1cf5e781
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pynvtx/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2022 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.package import *
+
+
+class PyPynvtx(PythonPackage):
+ """A thin python wrapper for the nvToolsExt (NVTX) library, using
+ pybind11. This wrapper is meant to be as thin as possible -- so
+ only provides minimal support. Currently supported features are:
+
+ NVTX annotations: nvtxRangePushA and nvtxRangePop
+ Function decorator: PyNVTX.annotate
+ Automatic decorator generation PyNVTX.annotate_all_methods()"""
+
+ homepage = "https://github.com/JBlaschke/PyNVTX"
+ pypi = "PyNVTX/PyNVTX-0.3.3.tar.gz"
+
+ maintainers("DaxLynch")
+
+ version("0.3.3", sha256="8877b2d90bbf9d279d517a80a8f35a0a0a8179ebabf0729e806798a84bee6c72")
+
+ depends_on("py-setuptools@40.8:", type="build")
+ depends_on("py-pybind11", type=("build", "link", "run"))