diff --git a/packages/py-vbi/fix-install.patch b/packages/py-vbi/fix-install.patch deleted file mode 100644 index d84cceb038b3541afde9fff63edd58b0545893e4..0000000000000000000000000000000000000000 --- a/packages/py-vbi/fix-install.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/pyproject.toml b/pyproject.toml -index debc24e..2e0500b 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -58,7 +58,6 @@ path = "vbi/_version.py" - - - [tool.setuptools] --packages = ["vbi"] - include-package-data = true - - [tool.setuptools.package-data] diff --git a/packages/py-vbi/package.py b/packages/py-vbi/package.py index 138893c5525043f17cde71ac71e85430c2415340..0ac988a2822897fc1d51da03e51f43cd6c15b908 100644 --- a/packages/py-vbi/package.py +++ b/packages/py-vbi/package.py @@ -6,16 +6,16 @@ from spack import * -class PyVbi(PythonPackage): +class PyVbi(PythonPackage, CudaPackage): homepage = "https://vbi.readthedocs.io/latest/" git = "https://github.com/ins-amu/vbi" url = "https://github.com/ins-amu/vbi/archive/refs/tags/v0.1.3.tar.gz" - version("0.1.3", "54fa2062f44c9ec8219fae3c13c52a4bd17141b5467b982987673de0662c5255") + version("0.1.3", "8ccccf2bf0def2bf97f4706b8597c4cb3ac5f0cf2ac5f08566e22cd6273c1163") version("0.1.2", "6ccfeeec718be62a480002a8370130a3e3344955186f99ecbb15b646b68210d6") + - patch('fix-install.patch') depends_on("python@3.8:", type=("build","run")) depends_on("py-setuptools", type="build") @@ -37,6 +37,7 @@ class PyVbi(PythonPackage): depends_on("py-scikit-learn", type=("build", "run")) depends_on("py-pycatch22", type=("build", "run")) depends_on("py-pytest", type="test") + depends_on("py-cupy", type=("build", "run"), when="+cuda") @run_after("install") @on_package_attributes(run_tests=True)