[Python-3000] Looking for advice on PEP 3101 implementation details

Eric Smith eric+python-dev at trueblade.com
Tue Aug 21 03:22:22 CEST 2007


Guido van Rossum wrote:
> On 8/20/07, Eric Smith <eric+python-dev at trueblade.com> wrote:

>> Modules/Setup.dist contains this comment:
>> # This only contains the minimal set of modules required to run the
>> # setup.py script in the root of the Python source tree.
>>
>> I think this applies to me, as setup.py indirectly includes string.

> You can ignore Makefile* and Modules/Setup*; instead, you should be
> editing setup.py at the toplevel. Since your new module doesn't depend
> on anything external it should be a one-line change, modeled after
> this one:
> 
> exts.append( Extension('_weakref', ['_weakref.c']) )

But if string.py imports _formatter, then setup.py fails with being 
unable to "import string":

$ ./python setup.py
object  : ImportError('No module named _formatter',)
type    : ImportError
refcount: 4
address : 0xf6f9acac
lost sys.stderr

That's why I referenced the comment in Setup.dist.


More information about the Python-3000 mailing list