Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Klaus Noelp
ebrains-spack-builds
Commits
59530644
Commit
59530644
authored
2 years ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
f9b6d5f9
(which fixed the build of hxtorch)
parent
6f1ded93
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/hxtorch/package.py
+15
-18
15 additions, 18 deletions
packages/hxtorch/package.py
with
15 additions
and
18 deletions
packages/hxtorch/package.py
+
15
−
18
View file @
59530644
...
...
@@ -62,7 +62,7 @@ class Hxtorch(WafPackage):
query
=
self
.
spec
[
dep
.
name
]
try
:
if
dep
.
name
in
[
'
pthreadpool
'
,
'
fxdiv
'
]:
print
(
'
skipping {}
for headers
'
.
format
(
dep
.
name
))
print
(
'
skipping {}
in SPACK_INCLUDE_DIRS/CPATH/C{,_PLUS}_INCLUDE_PATH
\n
'
.
format
(
dep
.
name
))
for
d
in
query
.
headers
.
directories
:
if
os
.
path
.
exists
(
d
):
env
.
remove_path
(
'
SPACK_INCLUDE_DIRS
'
,
d
)
...
...
@@ -75,25 +75,22 @@ class Hxtorch(WafPackage):
library
=
[]
for
dep
in
self
.
spec
.
traverse
(
deptype
=
(
'
link
'
,
'
run
'
)):
query
=
self
.
spec
[
dep
.
name
]
# we probably should skip/remove the entries for the same
# dependencies as above; however, ".libs" relies on the package
# name being the same as the library name (e.g. approx.
# libPACKAGE.so) so we are just moving googletest to the front
if
dep
.
name
==
'
googletest
'
:
for
d
in
[
self
.
spec
[
'
googletest
'
].
prefix
.
lib64
,
self
.
spec
[
'
googletest
'
].
prefix
.
lib
]:
if
os
.
path
.
exists
(
d
):
print
(
'
moving to front of SPACK_{LINK,RPATH}_DIRS
\n
'
,
d
)
env
.
remove_path
(
'
SPACK_LINK_DIRS
'
,
d
)
env
.
prepend_path
(
'
SPACK_LINK_DIRS
'
,
d
)
env
.
remove_path
(
'
SPACK_RPATH_DIRS
'
,
d
)
env
.
prepend_path
(
'
SPACK_RPATH_DIRS
'
,
d
)
try
:
if
dep
.
name
in
[
'
pthreadpool
'
,
'
fxdiv
'
]:
print
(
'
skipping {} for libs
'
.
format
(
dep
.
name
))
for
d
in
query
.
libs
.
directories
:
if
os
.
path
.
exists
(
d
):
env
.
remove_path
(
'
SPACK_LINK_DIRS
'
,
d
)
env
.
remove_path
(
'
SPACK_RPATH_DIRS
'
,
d
)
continue
if
dep
.
name
==
'
googletest
'
:
for
d
in
[
self
.
spec
[
'
googletest
'
].
prefix
.
lib64
,
self
.
spec
[
'
googletest
'
].
prefix
.
lib
]:
if
os
.
path
.
exists
(
d
):
print
(
'
manually inserting at front
'
,
d
)
env
.
remove_path
(
'
SPACK_LINK_DIRS
'
,
d
)
env
.
prepend_path
(
'
SPACK_LINK_DIRS
'
,
d
)
env
.
remove_path
(
'
SPACK_RPATH_DIRS
'
,
d
)
env
.
prepend_path
(
'
SPACK_RPATH_DIRS
'
,
d
)
continue
library
.
extend
(
query
.
libs
.
directories
)
print
(
'
libs (
'
,
dep
.
name
,
'
):
'
,
query
.
libs
.
directories
,
"
\n
"
)
# extend at front
library
=
query
.
libs
.
directories
+
library
except
:
pass
...
...
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