Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
19d10291
Commit
19d10291
authored
9 years ago
by
Gregory L. Lee
Browse files
Options
Downloads
Patches
Plain Diff
modify compiler commands in python config files, fix for #431
parent
d8a70166
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/python/package.py
+14
-0
14 additions, 0 deletions
var/spack/repos/builtin/packages/python/package.py
with
14 additions
and
0 deletions
var/spack/repos/builtin/packages/python/package.py
+
14
−
0
View file @
19d10291
...
...
@@ -55,6 +55,20 @@ def install(self, spec, prefix):
make
()
make
(
"
install
"
)
# Modify compiler paths in configuration files. This is necessary for
# building site packages outside of spack
filter_file
(
r
'
([/s]=?)([\S=]*)/lib/spack/env(/[^\s/]*)?/(\S*)(\s)
'
,
(
r
'
\4\5
'
),
join_path
(
prefix
.
lib
,
'
python%d.%d
'
%
self
.
version
[:
2
],
'
_sysconfigdata.py
'
))
python3_version
=
''
if
spec
.
satisfies
(
'
@3:
'
):
python3_version
=
'
-%d.%dm
'
%
self
.
version
[:
2
]
makefile_filepath
=
join_path
(
prefix
.
lib
,
'
python%d.%d
'
%
self
.
version
[:
2
],
'
config%s
'
%
python3_version
,
'
Makefile
'
)
filter_file
(
r
'
([/s]=?)([\S=]*)/lib/spack/env(/[^\s/]*)?/(\S*)(\s)
'
,
(
r
'
\4\5
'
),
makefile_filepath
)
# ========================================================================
# Set up environment to make install easy for python extensions.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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