Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
30
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
Commits
3c360dcb
Commit
3c360dcb
authored
1 year ago
by
Andrew Rowley
Browse files
Options
Downloads
Patches
Plain Diff
Make sure we have done the right thing
parent
932a3722
No related branches found
Branches containing commit
No related tags found
2 merge requests
!391
create new experimental release
,
!390
Add java spinnaker
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/py-spinnfrontendcommon/package.py
+12
-2
12 additions, 2 deletions
packages/py-spinnfrontendcommon/package.py
with
12 additions
and
2 deletions
packages/py-spinnfrontendcommon/package.py
+
12
−
2
View file @
3c360dcb
...
...
@@ -6,6 +6,7 @@
from
spack.package
import
*
from
spack.fetch_strategy
import
URLFetchStrategy
from
spack.store
import
find
import
os
_JAR_URL
=
"
https://github.com/SpiNNakerManchester/JavaSpiNNaker/releases/download/7.0.0/spinnaker-exe.jar
"
_JAR_SHA256
=
"
2d909c7fb3aa15886acf26febb1bd48e25db0c347a231944aa6a5f86107bb55b
"
...
...
@@ -32,8 +33,17 @@ class PySpinnfrontendcommon(PythonPackage):
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:
"
)[
0
]
python_lib
=
f
"
python
{
python_spec
.
version
}
"
install_tree
(
"
JavaSpiNNaker
"
,
prefix
.
lib
.
join
(
python_lib
).
site_packages
)
python_version_parts
=
python_spec
.
version
.
split
(
'
.
'
)
python_version
=
"
.
"
.
join
(
python_version_parts
[
0
:
2
])
python_lib
=
f
"
python
{
python_version
}
"
site_packages
=
prefix
.
lib
.
join
(
python_lib
).
site_packages
install_tree
(
"
JavaSpiNNaker
"
,
site_packages
)
# Test where things are now installed
for
root
,
dirnames
,
filenames
in
os
.
walk
(
site_packages
):
for
filename
in
filenames
:
print
(
os
.
path
.
join
(
root
,
filename
))
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment