[issue6365] distutils duplicates package directory for C extensions in 3.1 final

Tarek Ziadé report at bugs.python.org
Mon Jun 29 11:55:37 CEST 2009


Tarek Ziadé <ziade.tarek at gmail.com> added the comment:

I figured out the problem after writing the test. This is not a problem
on distutils side but on setuptools side. If you remove setuptools from
lxml setup.py, it'll work perfectly.

setuptools patches distutils's build_ext and remove temporarely the
inplace option, so the code on distutils side that goes with the inplace
option is not called...

extract from setuptools.

{{{
    def run(self):
        """Build extensions in build directory, then copy if --inplace"""
        old_inplace, self.inplace = self.inplace, 0
        _build_ext.run(self)
        self.inplace = old_inplace
        if old_inplace:
            self.copy_extensions_to_source()

}}}

So this problem should be fixed on setuptools side.

----------
resolution:  -> invalid

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


More information about the Python-bugs-list mailing list