Message74507
| Author |
mhammond |
| Recipients |
loewis, mhammond |
| Date |
2008年10月08日.00:55:45 |
| SpamBayes Score |
1.202888e-05 |
| Marked as misclassified |
No |
| Message-id |
<1223427347.42.0.185462217727.issue4073@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|