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 doko
Recipients barry, doko, gvanrossum, ned.deily, pje, schmir, srid, ssteiner, tarek
Date 2009-10-12.18:45:16
SpamBayes Score 0.0004829295
Marked as misclassified No
Message-id <1255373118.53.0.734074773107.issue7064@psf.upfronthosting.co.za>
In-reply-to
Content
This change shows a regression (https://bugs.launchpad.net/bugs/449734),
the setup.py file might not be correct, but it did work before this
change (with plain distutils). Quoting from the report:


Set setup.py file looks like this:
setup(name='update-manager',
...
      ext_modules=[Extension('UpdateManager/fdsend',
                             ['UpdateManager/fdsend/fdsend.c'])],
...

WIth 2.6.4~rc1 the logs read:
copying build/lib.linux-x86_64-2.6/fdsend.so ->
/tmp/buildd/update-manager-0.126.1/debian/tmp/usr/lib/python2.6/dist-packages

With 2.6.3:
copying build/lib.linux-x86_64-2.6/UpdateManager/fdsend.so ->
/home/egon/devel/update-manager/checkout/build-area/update-manager-0.126.1/debian/tmp/usr/lib/python2.6/dist-packages/UpdateManager

So it looks like python is eating a prefix.

http://bugs.python.org/issue7064

is why this change was made.

Reading that, it was done because setuptools assumes that the method
is always called with the full dotted name, when it was just being called
with the last part of it.

However, update-manager isn't using a dotted module path anyway, it's
passing a path.

http://docs.python.org/distutils/setupscript.html#extension-names-and-packages

shows that you would be expected to use

      ext_modules=[Extension('UpdateManager.fdsend',
                             ['UpdateManager/fdsend/fdsend.c'])],

(note . not / in the first line)
History
Date User Action Args
2009-10-12 18:45:18dokosetrecipients: + doko, gvanrossum, barry, pje, ssteiner, schmir, tarek, ned.deily, srid
2009-10-12 18:45:18dokosetmessageid: <1255373118.53.0.734074773107.issue7064@psf.upfronthosting.co.za>
2009-10-12 18:45:17dokolinkissue7064 messages
2009-10-12 18:45:16dokocreate