#79 Output Redirection kills 2nd Build

open
nobody
None
5
2005-09-24
2005-09-24
dbareis
No

Hi,

If I delete the Build directory and execute (setup.py):

"out\hello.py.mm.py" py2exe > 1.x 2>&1

The build works, builds the "dist" dir and returns RC=0,
if I repeat the above command it fails with RC=1.

It appears to fail differently if I remove the "2>&1" (stderr
redirection) and says:

Traceback (most recent call last):
File "c:\docume~1\dennis~1.cn-\locals~1
\temp\tmpdvcf7r.py", line 55, in ?
direct=1)
File "C:\Program Files\Python.24\Lib\site-
packages\py2exe\build_exe.py", line
1415, in byte_compile
print "skipping byte-compilation of %s to %s" % \ IOError: [Errno 9] Bad file descriptor
close failed: [Errno 9] Bad file descriptor
error: command '"C:\Program Files\Python.24
\python.exe"' failed with exit status
1

I am a python begiiner and partly to learn python am
building py2exe into a Py2MSI" (Windows Installer) step.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks