Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
40
Issue boards
Milestones
Wiki
Code
Merge requests
29
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
!500
feat(BSS-2): support spack fetch
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat(BSS-2): support spack fetch
feat_BSS2_support_fetch
into
master
Overview
0
Commits
1
Pipelines
15
Changes
2
Merged
Eric Müller
requested to merge
feat_BSS2_support_fetch
into
master
1 year ago
Overview
0
Commits
1
Pipelines
15
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 14
9ff71368
1 year ago
version 13
a0ae900d
1 year ago
version 12
d900d228
1 year ago
version 11
71e4dacd
1 year ago
version 10
02afaf5c
1 year ago
version 9
12297e77
1 year ago
version 8
7826f157
1 year ago
version 7
631715c5
1 year ago
version 6
39364991
1 year ago
version 5
6f3e27a3
1 year ago
version 4
982c0e81
1 year ago
version 3
501c4e4f
1 year ago
version 2
bbd8128a
1 year ago
version 1
06892066
1 year ago
master (base)
and
latest version
latest version
675b000e
1 commit,
1 year ago
version 14
9ff71368
2 commits,
1 year ago
version 13
a0ae900d
2 commits,
1 year ago
version 12
d900d228
2 commits,
1 year ago
version 11
71e4dacd
2 commits,
1 year ago
version 10
02afaf5c
2 commits,
1 year ago
version 9
12297e77
2 commits,
1 year ago
version 8
7826f157
2 commits,
1 year ago
version 7
631715c5
2 commits,
1 year ago
version 6
39364991
2 commits,
1 year ago
version 5
6f3e27a3
2 commits,
1 year ago
version 4
982c0e81
2 commits,
1 year ago
version 3
501c4e4f
2 commits,
1 year ago
version 2
bbd8128a
2 commits,
1 year ago
version 1
06892066
2 commits,
1 year ago
2 files
+
60
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
packages/hxtorch/package.py
+
30
−
10
Options
@@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import
os
import
unittest.mock
from
spack
import
*
from
spack.util.environment
import
EnvironmentModifications
@@ -18,7 +19,7 @@ class Hxtorch(WafPackage):
maintainers
=
[
'
emuller
'
]
version
(
'
7.0-rc1-fixup2
'
,
branch
=
'
waf
'
)
version
(
'
7.0-rc1-fixup2
'
,
tag
=
'
hxtorch-7.0-rc1-fixup2
'
)
version
(
'
7.0-rc1-fixup1
'
,
branch
=
'
waf
'
)
# compiler for the BrainScaleS-2 embedded processor ("PPU"); needed for
@@ -64,6 +65,33 @@ class Hxtorch(WafPackage):
depends_on
(
'
yaml-cpp+shared
'
,
type
=
(
'
build
'
,
'
link
'
,
'
run
'
))
extends
(
'
python
'
)
def
do_fetch
(
self
,
mirror_only
=
False
):
"""
Setup the project.
"""
self
.
stage
.
create
()
self
.
stage
.
fetch
(
mirror_only
)
# if fetcher didn't do anything, it's cached already
if
not
os
.
path
.
exists
(
self
.
stage
.
source_path
):
return
with
working_dir
(
self
.
stage
.
source_path
):
waf
=
which
(
'
./waf
'
)
waf
(
'
setup
'
,
'
--repo-db-url=https://github.com/electronicvisions/projects
'
,
'
--clone-depth=2
'
,
'
--without-munge
'
,
'
--without-hxcomm-hostarq
'
,
'
--without-hxcomm-extoll
'
,
'
--project=hxtorch
'
,
'
--release-branch=ebrains-
'
+
str
(
self
.
spec
.
version
)
)
# in the configure step, we need access to all archived .git folders
def
custom_archive
(
self
,
destination
):
super
(
spack
.
fetch_strategy
.
GitFetchStrategy
,
self
).
archive
(
destination
)
with
unittest
.
mock
.
patch
(
'
spack.fetch_strategy.GitFetchStrategy.archive
'
,
new
=
custom_archive
):
self
.
stage
.
cache_local
()
def
_setup_common_env
(
self
,
env
):
# grenade needs to find some libraries for the JIT-compilation of
# programs for BrainScaleS-2's embedded processor.
@@ -116,15 +144,7 @@ class Hxtorch(WafPackage):
# override configure step as we perform a project setup first
def
configure
(
self
,
spec
,
prefix
):
"""
Setup and configure the project.
"""
self
.
waf
(
'
setup
'
,
'
--repo-db-url=https://github.com/electronicvisions/projects
'
,
'
--without-munge
'
,
'
--without-hxcomm-hostarq
'
,
'
--without-hxcomm-extoll
'
,
'
--project=hxtorch
'
,
'
--release-branch=ebrains-
'
+
str
(
spec
.
version
)
)
"""
Configure the project.
"""
args
=
[
'
--prefix={0}
'
.
format
(
self
.
prefix
)]
args
+=
self
.
configure_args
()