Skip to content
Snippets Groups Projects
Commit 7b0ee38f authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

Merge branch 'master' into 'experimental_rel'

create new experimental release

See merge request technical-coordination/project-internal/devops/platform/ebrains-spack-builds!391
parents d5053de5 60d80ee1
No related branches found
No related tags found
1 merge request!391create new experimental release
Pipeline #24314 passed with stage
in 55 minutes and 12 seconds
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
from spack.package import * from spack.package import *
_JAR_URL = "https://github.com/SpiNNakerManchester/JavaSpiNNaker/releases/download/7.0.0/spinnaker-exe.jar"
_JAR_SHA256 = "2d909c7fb3aa15886acf26febb1bd48e25db0c347a231944aa6a5f86107bb55b"
class PySpinnfrontendcommon(PythonPackage): class PySpinnfrontendcommon(PythonPackage):
"""This package provides utilities for specifying binary data """This package provides utilities for specifying binary data
algorithmically, and executing the specifications to produce the data.""" algorithmically, and executing the specifications to produce the data."""
...@@ -21,3 +24,16 @@ class PySpinnfrontendcommon(PythonPackage): ...@@ -21,3 +24,16 @@ class PySpinnfrontendcommon(PythonPackage):
depends_on("py-spalloc@7.0.0", type=("build", "run")) depends_on("py-spalloc@7.0.0", type=("build", "run"))
depends_on("py-scipy@0.16.0:", type=("build", "run")) depends_on("py-scipy@0.16.0:", type=("build", "run"))
depends_on("py-ebrains-drive@0.5.1:", type=("build", "run")) depends_on("py-ebrains-drive@0.5.1:", type=("build", "run"))
depends_on("java@11:")
resource(name="spinnaker-exe.jar", url=_JAR_URL, checksum=_JAR_SHA256, expand=False, placement="resource_root/JavaSpiNNaker/SpiNNaker-front-end/target")
def install(self, spec, prefix):
super(PySpinnfrontendcommon, self).install(spec, prefix)
# Work out the python version installed, so we know where to put
# the java code!
python_version = spec["python"].version.up_to(2)
python_lib = prefix.lib.join(f"python{python_version}")
install_tree("resource_root", python_lib)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment