Message74507
The distutils commands 'build_scripts' and 'install_data' both may end
up installing .py files. Such .py file should be able tobe run through
lib2to3 in the same way supported by build_py.
pywin32 has ended up with something like:
class my_build_scripts(build_scripts):
def copy_file(self, src, dest):
dest, copied = build_scripts.copy_file(self, src, dest)
# 2to3
if not self.dry_run and copied:
refactor_filenames([dest])
return dest, copied
where 'refactor_filenames' is (basically) the lib2to3 block from
build_py moved to a utility function. |
|
Date |
User |
Action |
Args |
2008-10-08 00:55:47 | mhammond | set | recipients:
+ mhammond, loewis |
2008-10-08 00:55:47 | mhammond | set | messageid: <1223427347.42.0.185462217727.issue4073@psf.upfronthosting.co.za> |
2008-10-08 00:55:46 | mhammond | link | issue4073 messages |
2008-10-08 00:55:45 | mhammond | create | |
|