This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:47mhammondsetrecipients: + mhammond, loewis
2008-10-08 00:55:47mhammondsetmessageid: <1223427347.42.0.185462217727.issue4073@psf.upfronthosting.co.za>
2008-10-08 00:55:46mhammondlinkissue4073 messages
2008-10-08 00:55:45mhammondcreate