Skip to content
Snippets Groups Projects
Commit 0368bf11 authored by Andrew Rowley's avatar Andrew Rowley
Browse files

Try this

parent c4dd52e5
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
from spack.package import *
from spack.fetch_strategy import URLFetchStrategy
from spack.store import find
_JAR_URL = "https://github.com/SpiNNakerManchester/JavaSpiNNaker/releases/download/7.0.0/spinnaker-exe.jar"
_JAR_SHA256 = "2d909c7fb3aa15886acf26febb1bd48e25db0c347a231944aa6a5f86107bb55b"
......@@ -28,3 +29,11 @@ class PySpinnfrontendcommon(PythonPackage):
depends_on("py-ebrains-drive@0.5.1:", type=("build", "run"))
depends_on("java@11:")
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_spec = find("python@3.7:")
python_lib = f"python{python_spec.version}"
install_tree("JavaSpiNNaker", prefix.lib.join(python_lib).site_packages)
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