Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
30
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
!245
create new experimental release
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
create new experimental release
master
into
experimental_rel
Overview
0
Commits
10
Pipelines
1
Changes
5
Merged
Eleni Mathioulaki
requested to merge
master
into
experimental_rel
2 years ago
Overview
0
Commits
10
Pipelines
1
Changes
5
Expand
0
0
Merge request reports
Compare
experimental_rel
experimental_rel (base)
and
latest version
latest version
a4d46304
10 commits,
2 years ago
5 files
+
30
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
packages/hxtorch/package.py
+
5
−
2
Options
@@ -2,9 +2,10 @@
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import
os
from
spack
import
*
from
spack.pkg.builtin.boost
import
Boost
import
os
class
Hxtorch
(
WafPackage
):
@@ -128,7 +129,7 @@ class Hxtorch(WafPackage):
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
.
set
(
'
WAF_CONFIGURE_
LD_LIBRARY_PATH
'
,
'
:
'
.
join
(
library
))
env
.
prepend_path
(
'
PATH
'
,
'
:
'
.
join
(
path
))
def
setup_run_environment
(
self
,
env
):
@@ -164,6 +165,8 @@ class Hxtorch(WafPackage):
args
=
[
'
--prefix={0}
'
.
format
(
self
.
prefix
)]
args
+=
self
.
configure_args
()
env
=
os
.
environ
env
[
'
LD_LIBRARY_PATH
'
]
=
env
.
get
(
'
WAF_CONFIGURE_LD_LIBRARY_PATH
'
)
self
.
waf
(
'
configure
'
,
'
--build-profile=release
'
,
*
args
)
def
build_args
(
self
):