[Twisted-web] Re: [Nevow-commits] r5247 - Change package_data
so that distutils and setuptools include the athena_private
matt at pollenation.net
Fri Mar 10 08:56:36 CST 2006
Matt Goodall wrote:
> Tristan Seligmann wrote:
>>* mg at divmod.net <mg at divmod.net> [2006-03-09 09:12:35 -0500]:
>>>Note: the actual package data is the athena_private directory in the nevow
>>>package, not the files in the non-existant nevow.athena_private package.
>>>--- trunk/Nevow/setupcommon.py (original)
>>>+++ trunk/Nevow/setupcommon.py Thu Mar 9 09:12:35 2006
>>>@@ -17,6 +17,7 @@
>>> 'nevow': [
>>>@@ -48,7 +49,4 @@
>>>- 'nevow.athena_private': [
>>This change does fix setuptools behaviour, but now distutils no longer
>>works. I gues someone who knows more about distutils and setuptools than
>>I do needs to figure this one out; I originally added the non-existent
>>nevow.athena_private package because that was the only way that seemed
>>to work for distutils. Argh!
> Yeah, you're right. Sorry about that, although I did try it out here and
> it seemed ok. Obviously, I had something lurking in sys.path.
> Perhaps we need to make athena_private a real package? Perhaps it's a
> setuptools bug?
> It doesn't quite seem like setuptools's fault to me - why should
> setuptools include *package* data from something that's not a package.
> On the other hand, setuptools should probably copy what distutils does.
> Any suggestions?
Actually, this seems to be a problem with the package_data to data_files
stuff in setup.py to support Python 2.3.
setuptools and distutils (from Python 2.4) do actually do the right thing.
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \ w: http://www.pollenation.net
__/ \__/ e: matt at pollenation.net
/ \__/ \ t: +44 (0)113 2252500
/ \ Any views expressed are my own and do not necessarily
\__/ reflect the views of my employer.
More information about the Twisted-web