Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f2bd62b0
Commit
f2bd62b0
authored
May 02, 2011
by
Mark Florisson
Committed by
Vitja Makarov
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fail if the C compiler is not found
parent
13f2c836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
runtests.py
runtests.py
+15
-3
No files found.
runtests.py
View file @
f2bd62b0
...
...
@@ -112,11 +112,23 @@ def get_openmp_compiler_flags(language):
try:
import subprocess
except ImportError:
in_, out, err = os.popen(cc = "
-
v
")
try:
in_, out, err = os.popen(cc + "
-
v
")
except EnvironmentError, e:
warnings.warn("
Unable
to
find
the
%
s
compiler
:
%
s
:
%
s
" %
(language, os.strerror(e.errno), cc))
return None
output = out.read() or err.read()
else:
p = subprocess.Popen([cc, "
-
v
"], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
try:
p = subprocess.Popen([cc, "
-
v
"], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
except EnvironmentError, e:
warnings.warn("
Unable
to
find
the
%
s
compiler
:
%
s
:
%
s
" %
(language, os.strerror(e.errno), cc))
return None
output = p.stdout.read()
compiler_version = matcher(output).group(1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment