[issue4073] distutils build_scripts and install_data commands need 2to3 support

Martin v. Löwis report at bugs.python.org
Wed Oct 15 09:12:30 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

Here is a patch. It refactors the 2to3 support into a function in util,
and adds build_scripts support.

For build_scripts, the approach is slightly different from the one
proposed by Mark: I modify copy_scripts to collect the modified files,
and return them along with outfiles. Modifying copy_file is
insufficient, as it doesn't support the case of adjust.

I'm skeptical about adding build_data support, as it's not obvious what
files would need conversion. Users should adjust their build_data
commands to invoke distutils.util.run_2to3. I would appreciate a
confirmation that this function has a useful API.

In this version, I don't pass any options to the RefactoringTool
anymore, and I arrange to delete the backup files.

----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file11801/build_scripts.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4073>
_______________________________________


More information about the Python-bugs-list mailing list