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
7082b0a5
Commit
7082b0a5
authored
10 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
cc supports Python 2.6
parent
696e80c6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/env/cc
+3
-3
3 additions, 3 deletions
lib/spack/env/cc
lib/spack/spack/test/python_version.py
+1
-0
1 addition, 0 deletions
lib/spack/spack/test/python_version.py
with
4 additions
and
3 deletions
lib/spack/env/cc
+
3
−
3
View file @
7082b0a5
#!/usr/bin/env python
#!/usr/bin/env python
import
sys
import
sys
if
not
sys
.
version_info
[:
2
]
>=
(
2
,
7
):
if
not
sys
.
version_info
[:
2
]
>=
(
2
,
6
):
sys
.
exit
(
"
Spack requires Python 2.
7
. Version was %s.
"
%
sys
.
version_info
)
sys
.
exit
(
"
Spack requires Python 2.
6
. Version was %s.
"
%
sys
.
version_info
)
import
os
import
os
import
re
import
re
import
subprocess
import
subprocess
import
argparse
from
contextlib
import
closing
from
contextlib
import
closing
# Import spack parameters through the build environment.
# Import spack parameters through the build environment.
...
@@ -18,6 +17,7 @@ if not spack_lib:
...
@@ -18,6 +17,7 @@ if not spack_lib:
# Grab a minimal set of spack packages
# Grab a minimal set of spack packages
sys
.
path
.
append
(
spack_lib
)
sys
.
path
.
append
(
spack_lib
)
from
spack.compilation
import
*
from
spack.compilation
import
*
from
external
import
argparse
import
llnl.util.tty
as
tty
import
llnl.util.tty
as
tty
spack_prefix
=
get_env_var
(
"
SPACK_PREFIX
"
)
spack_prefix
=
get_env_var
(
"
SPACK_PREFIX
"
)
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/test/python_version.py
+
1
−
0
View file @
7082b0a5
...
@@ -45,6 +45,7 @@ class PythonVersionTest(unittest.TestCase):
...
@@ -45,6 +45,7 @@ class PythonVersionTest(unittest.TestCase):
def
spack_python_files
(
self
):
def
spack_python_files
(
self
):
# first file is the spack script.
# first file is the spack script.
yield
spack
.
spack_file
yield
spack
.
spack_file
yield
os
.
path
.
join
(
spack
.
build_env_path
,
'
cc
'
)
# Next files are all the source files and package files.
# Next files are all the source files and package files.
search_paths
=
[
spack
.
lib_path
,
spack
.
var_path
]
search_paths
=
[
spack
.
lib_path
,
spack
.
var_path
]
...
...
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