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
db8bd7ad
Commit
db8bd7ad
authored
3 years ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
Re-add setup_build_environment(…) in pynn-brainscales
parent
adb9ffe9
No related branches found
Branches containing commit
No related tags found
2 merge requests
!74
create new experimental release from master
,
!72
Re-add setup_build_environment(…) in pynn-brainscales
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/pynn-brainscales/package.py
+45
-0
45 additions, 0 deletions
packages/pynn-brainscales/package.py
with
45 additions
and
0 deletions
packages/pynn-brainscales/package.py
+
45
−
0
View file @
db8bd7ad
...
...
@@ -58,6 +58,51 @@ class PynnBrainscales(WafPackage):
depends_on
(
'
yaml-cpp+shared
'
,
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
)
print
(
'
headers:
'
,
query
.
headers
.
directories
,
"
\n
"
)
except
:
pass
library
=
[]
for
dep
in
self
.
spec
.
traverse
(
deptype
=
(
'
link
'
,
'
run
'
)):
query
=
self
.
spec
[
dep
.
name
]
try
:
library
.
extend
(
query
.
libs
.
directories
)
print
(
'
libs:
'
,
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
)
print
(
'
bin:
'
,
query
.
prefix
.
bin
,
"
\n
"
)
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
))
def
setup_run_environment
(
self
,
env
):
env
.
prepend_path
(
'
PYTHONPATH
'
,
self
.
prefix
.
lib
)
# override configure step as we perform a project setup first
def
configure
(
self
,
spec
,
prefix
):
...
...
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