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
323bba99
Commit
323bba99
authored
9 years ago
by
Adam J. Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable name bug
parent
8ef800f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/spack
+4
-4
4 additions, 4 deletions
bin/spack
with
4 additions
and
4 deletions
bin/spack
+
4
−
4
View file @
323bba99
...
@@ -42,9 +42,9 @@ SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
...
@@ -42,9 +42,9 @@ SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
sys
.
path
.
insert
(
0
,
SPACK_EXTERNAL_LIBS
)
sys
.
path
.
insert
(
0
,
SPACK_EXTERNAL_LIBS
)
import
warnings
import
warnings
# Avoid warnings when nose is installed with the python exe being used to run
# Avoid warnings when nose is installed with the python exe being used to run
# spack. Note this must be done after Spack's external libs directory is added
# spack. Note this must be done after Spack's external libs directory is added
# to sys.path.
# to sys.path.
with
warnings
.
catch_warnings
():
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"
ignore
"
,
"
.*nose was already imported
"
)
warnings
.
filterwarnings
(
"
ignore
"
,
"
.*nose was already imported
"
)
import
nose
import
nose
...
@@ -62,7 +62,7 @@ for pyc_file in orphaned_pyc_files:
...
@@ -62,7 +62,7 @@ for pyc_file in orphaned_pyc_files:
try
:
try
:
os
.
remove
(
pyc_file
)
os
.
remove
(
pyc_file
)
except
OSError
as
e
:
except
OSError
as
e
:
print
"
WARNING: Spack may fail mysteriously. Couldn
'
t remove orphaned .pyc file: %s
"
%
pyc
print
"
WARNING: Spack may fail mysteriously. Couldn
'
t remove orphaned .pyc file: %s
"
%
pyc
_file
# If there is no working directory, use the spack prefix.
# If there is no working directory, use the spack prefix.
try
:
try
:
...
...
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