[Twisted-web] Re: [Nevow-commits] r5247 - Change package_data
so that distutils and setuptools include the athena_private
Matt Goodall
matt at pollenation.net
Fri Mar 10 08:40:01 CST 2006
Tristan Seligmann wrote:
> * mg at divmod.net <mg at divmod.net> [2006-03-09 09:12:35 -0500]:
>
>
>>resource correctly.
>>
>>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.
>
>
>>Modified: trunk/Nevow/setupcommon.py
>>==============================================================================
>>--- trunk/Nevow/setupcommon.py (original)
>>+++ trunk/Nevow/setupcommon.py Thu Mar 9 09:12:35 2006
>>@@ -17,6 +17,7 @@
>> 'freeform-default.css'
>> ],
>> 'nevow': [
>>+ 'athena_private/*',
>> 'athena.js',
>> 'defer.js',
>> 'divmod.js',
>>@@ -48,7 +49,4 @@
>> 'test_object.js',
>> 'testsupport.js',
>> ],
>>- 'nevow.athena_private': [
>>- 'connection-status-down.png',
>>- ],
>> }
>>
>
>
> 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?
- Matt
--
__
/ \__ 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
mailing list