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
25
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
affdd7fc
Commit
affdd7fc
authored
3 years ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
Add pynn-brainscales
parent
ed1afda5
No related branches found
No related tags found
1 merge request
!11
Add pynn-brainscales
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/pynn-brainscales/package.py
+76
-0
76 additions, 0 deletions
packages/pynn-brainscales/package.py
with
76 additions
and
0 deletions
packages/pynn-brainscales/package.py
0 → 100644
+
76
−
0
View file @
affdd7fc
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack
import
*
class
PynnBrainscales
(
WafPackage
):
"""
PyNN toplevel for the BrainScaleS-2 neuromorphic hardware systems
"""
homepage
=
"
https://github.com/electronicvisions/pynn-brainscales
"
#url = "https://github.com/electronicvisions/pynn-brainscales/archive/v0.1.0.tar.gz"
git
=
"
https://github.com/electronicvisions/pynn-brainscales.git
"
version
(
'
waf
'
,
branch
=
'
waf
'
)
depends_on
(
'
meta-brainscales
'
,
type
=
(
'
build
'
,
'
link
'
,
'
run
'
))
extends
(
'
python
'
)
def
setup_build_environment
(
self
,
env
):
"""
waf needs to find headers and libraries by itself (mostly `boost`
tool, but also `gtest`); it also needs to run executables during
configuration.
"""
include
=
[]
for
dep
in
self
.
spec
.
traverse
(
deptype
=
'
build
'
):
query
=
self
.
spec
[
dep
.
name
]
try
:
include
.
extend
(
query
.
headers
.
directories
)
except
:
pass
library
=
[]
for
dep
in
self
.
spec
.
traverse
(
deptype
=
(
'
link
'
,
'
run
'
)):
query
=
self
.
spec
[
dep
.
name
]
try
:
print
(
"
\n
QUERY
"
,
query
)
library
.
extend
(
query
.
libs
.
directories
)
print
(
query
.
libs
.
directories
,
"
\n
"
)
except
:
pass
path
=
[]
for
dep
in
self
.
spec
.
traverse
(
deptype
=
(
'
build
'
,
'
link
'
,
'
run
'
)):
query
=
self
.
spec
[
dep
.
name
]
try
:
path
.
append
(
query
.
prefix
.
bin
)
except
:
pass
# llvm might be built with ~shared_libs but still builds shared libs
if
not
any
(
'
llvm
'
in
lib
for
lib
in
library
):
library
.
append
(
self
.
spec
[
'
llvm
'
].
prefix
.
lib
)
env
.
set
(
'
CPATH
'
,
'
:
'
.
join
(
include
))
env
.
set
(
'
C_INCLUDE_PATH
'
,
'
:
'
.
join
(
include
))
env
.
set
(
'
CPLUS_INCLUDE_PATH
'
,
'
:
'
.
join
(
include
))
env
.
set
(
'
LIBRARY_PATH
'
,
'
:
'
.
join
(
library
))
env
.
set
(
'
LD_LIBRARY_PATH
'
,
'
:
'
.
join
(
library
))
env
.
prepend_path
(
'
PATH
'
,
'
:
'
.
join
(
path
))
# override configure step as we perform a project setup first
def
configure
(
self
,
spec
,
prefix
):
"""
Setup and configure the project.
"""
self
.
waf
(
'
setup
'
,
'
--project=pynn-brainscales
'
,
'
--without-grenade-ppu-support
'
,
'
--without-munge
'
,
'
--project=grenade@ebrains_release-1-rc1
'
,
'
--project=hate@ebrains_release-1-rc1
'
,
'
--project=hxcomm@ebrains_release-1-rc1
'
,
'
--project=lib-rcf@ebrains_release-1-rc1
'
,
'
--project=visions-slurm@ebrains_release-1-rc1
'
)
args
=
[
'
--prefix={0}
'
.
format
(
self
.
prefix
)]
args
+=
self
.
configure_args
()
self
.
waf
(
'
configure
'
,
*
args
)
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