mirror of https://github.com/Mikaela/Limnoria.git
setup.py: In debug mode, display 2to3 logs.
This commit is contained in:
parent
e17cd0bd08
commit
d86dee6c9a
4
setup.py
4
setup.py
|
@ -81,6 +81,10 @@ elif sys.version_info[0] >= 3:
|
||||||
'few minutes.')
|
'few minutes.')
|
||||||
# For some reason, using open(os.devnull) makes the subprocess exit before
|
# For some reason, using open(os.devnull) makes the subprocess exit before
|
||||||
# it finishes...
|
# it finishes...
|
||||||
|
if debug:
|
||||||
|
subprocess.Popen([sys.executable,
|
||||||
|
os.path.join('2to3', 'run.py')]).wait()
|
||||||
|
else:
|
||||||
subprocess.Popen([sys.executable, os.path.join('2to3', 'run.py')],
|
subprocess.Popen([sys.executable, os.path.join('2to3', 'run.py')],
|
||||||
stdout=tempfile.TemporaryFile(),
|
stdout=tempfile.TemporaryFile(),
|
||||||
stderr=tempfile.TemporaryFile()).wait()
|
stderr=tempfile.TemporaryFile()).wait()
|
||||||
|
|
Loading…
Reference in New Issue