strange copy_file logic in wxPython 2.6.3.3 setup.py file
Charl P. Botha
cpbotha at cpbotha.net
Wed Oct 4 09:33:01 PDT 2006
Dear all,
In the wxPython 2.6.3.3 setup.py we find the following code:
for bo_name in ["build_options.py", "build_options.pyc"]:
if os.path.exists(bo_name):
os.remove(bo_name)
.
.
.
copy_file('config.py', 'wx/build', update=1, verbose=1)
copy_file('build_options.py', 'wx/build', update=1, verbose=1)
So, it's removing the build_options.py, and then it's trying to copy
this file to wx/build. On my system, this is resulting in an error:
Traceback (most recent call last):
File "setup.py", line 50, in <module>
copy_file('build_options.py', 'wx/build', update=1, verbose=1)
File "/data/tmp/wd/inst/python/lib/python2.5/distutils/file_util.py",
line 119, in copy_file
"can't copy '%s': doesn't exist or not a regular file" % src
distutils.errors.DistutilsFileError: can't copy 'build_options.py':
doesn't exist or not a regular file
Was this a typo, or am I missing something? Commenting out that
copy_file line fixes the problem. Comments?
Thanks,
Charl
--
dr. charl p. botha - http://visualisation.tudelft.nl/
work: c.p.botha%tudelft.nl other: cpbotha%cpbotha.net
More information about the wxpython-users
mailing list