Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
ec29b66f
Commit
ec29b66f
authored
Mar 29, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work with quoting on windows. pipes.quote is unix specific. we were getting lucky.
parent
e7f57961
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
util/cythonpp.py
util/cythonpp.py
+7
-5
No files found.
util/cythonpp.py
View file @
ec29b66f
...
...
@@ -8,7 +8,6 @@ import os.path
import
re
import
traceback
import
datetime
import
pipes
import
difflib
from
hashlib
import
md5
from
itertools
import
combinations
,
product
...
...
@@ -905,7 +904,9 @@ def atomic_write(filename, data):
def
run_cython
(
filename
,
sourcehash
,
output_filename
,
banner
,
comment
,
cache
=
None
):
dbg
(
"Cython output to %s hash %s"
,
output_filename
,
sourcehash
)
result
=
cache
.
get
(
sourcehash
)
if
cache
is
not
None
else
None
command
=
'%s -o %s -I gevent %s'
%
(
CYTHON
,
pipes
.
quote
(
output_filename
),
pipes
.
quote
(
filename
))
# Use an array for the argument so that filename arguments are properly
# quoted according to local convention
command
=
[
CYTHON
,
'-o'
,
output_filename
,
'-I'
,
'gevent'
,
filename
]
if
result
is
not
None
:
log
(
'Reusing %s # %s'
,
command
,
comment
)
return
result
...
...
@@ -917,10 +918,11 @@ def run_cython(filename, sourcehash, output_filename, banner, comment, cache=Non
def
system
(
command
,
comment
):
log
(
'Running %s # %s'
,
command
,
comment
)
command_str
=
' '
.
join
(
command
)
log
(
'Running %s # %s'
,
command_str
,
comment
)
try
:
subprocess
.
check_call
(
command
,
shell
=
True
)
dbg
(
'
\
t
Done running %s # %s'
,
command
,
comment
)
subprocess
.
check_call
(
command
)
dbg
(
'
\
t
Done running %s # %s'
,
command
_str
,
comment
)
except
subprocess
.
CalledProcessError
:
# debugging code
log
(
"Path: %s"
,
os
.
getenv
(
"PATH"
))
...
...
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