[Distutils] distribute 0.6.10 and convert_2to3_doctests

Barry Warsaw barry at python.org
Thu Jan 7 12:31:30 CET 2010


On Jan 7, 2010, at 6:09 AM, Lennart Regebro wrote:
>> 
>>    ...
>>    use_2to3 = True,
>>    convert_2to3_doctests = [
>>        'munepy/docs/README.txt',
>>        ],
>>    ...
>> 
>> but I never see that the README.txt is ever 'fixed'.  Indeed, the test fails
>> because of a syntax error when the doctest tries to print something using
>> Python 2 syntax.  I'm clearly not using this setup argument correctly, but I
>> can't tell where I'm going wrong.
>> 
>> How do you use convert_2to3_doctests?
> 
> Exactly like this. Note, however, that Distribute doesn't know that
> the file isn't already converted. It will look at the timestamps of
> the files, notice it hasn't changed, and do nothing. So you need to
> delete the target file in build/ and rerun the tests to have it run
> the conversion.

Hi Lennart, thanks for the response.  However, I don't think this is quite it.  I read this in the docs and deleted the entire build directory.  Then when I re-run the tests I can see that the .py files get "fixed" but it never tries to fix the README.txt.

-Barry



More information about the Distutils-SIG mailing list