Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
28
Issue boards
Milestones
Wiki
Code
Merge requests
31
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Merge requests
!390
Add java spinnaker
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add java spinnaker
rowley/ebrains-spack-builds:add-java-spinnaker
into
master
Overview
6
Commits
18
Pipelines
0
Changes
1
Merged
Andrew Rowley
requested to merge
rowley/ebrains-spack-builds:add-java-spinnaker
into
master
1 year ago
Overview
6
Commits
18
Pipelines
0
Changes
1
Expand
This adds a file which makes it possible to run the Java part of the SpiNNaker software.
0
0
Merge request reports
Compare
master
version 5
0d7f3e82
1 year ago
version 4
b2abf65c
1 year ago
version 3
f80a4f87
1 year ago
version 2
cf7b9556
1 year ago
version 1
75e7d9f2
1 year ago
master (base)
and
latest version
latest version
2ee45ac7
18 commits,
1 year ago
version 5
0d7f3e82
17 commits,
1 year ago
version 4
b2abf65c
16 commits,
1 year ago
version 3
f80a4f87
15 commits,
1 year ago
version 2
cf7b9556
14 commits,
1 year ago
version 1
75e7d9f2
13 commits,
1 year ago
1 file
+
16
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
packages/py-spinnfrontendcommon/package.py
+
16
−
0
Options
@@ -6,6 +6,9 @@
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
):
"""
This package provides utilities for specifying binary data
algorithmically, and executing the specifications to produce the data.
"""
@@ -21,3 +24,16 @@ class PySpinnfrontendcommon(PythonPackage):
depends_on
(
"
py-spalloc@7.0.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
(
"
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
)