mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
setup.py: In debug mode, display 2to3 logs.
This commit is contained in:
parent
3e26a2d7cf
commit
38d039ada2
10
setup.py
10
setup.py
@ -81,9 +81,13 @@ 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...
|
||||||
subprocess.Popen([sys.executable, os.path.join('2to3', 'run.py')],
|
if debug:
|
||||||
stdout=tempfile.TemporaryFile(),
|
subprocess.Popen([sys.executable,
|
||||||
stderr=tempfile.TemporaryFile()).wait()
|
os.path.join('2to3', 'run.py')]).wait()
|
||||||
|
else:
|
||||||
|
subprocess.Popen([sys.executable, os.path.join('2to3', 'run.py')],
|
||||||
|
stdout=tempfile.TemporaryFile(),
|
||||||
|
stderr=tempfile.TemporaryFile()).wait()
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Changing dir to py3k/')
|
print('DEBUG: Changing dir to py3k/')
|
||||||
os.chdir('py3k')
|
os.chdir('py3k')
|
||||||
|
Loading…
Reference in New Issue
Block a user