Re: the 'right way' to distribute and access data files in a packaged Python module

2009-02-02 Thread David Moss
> There is a zip-safe flag that you can specify that tells setuptools that > installing your egg only works if it is unarchived. However, there is also > the pkg_resources-package that allows you to access streams from within a > package, even if it is zipped. You should investigate these two opti

Re: the 'right way' to distribute and access data files in a packaged Python module

2009-02-02 Thread Diez B. Roggisch
David Moss wrote: > Hi, > > I'm the author of netaddr :- > > http://pypi.python.org/pypi/netaddr/0.6 > > For release 0.6 I've added setuptools support so it can be distributed > as a Python egg package using the easy_install tool. > > In 0.6, I've started bundling some data files from IEEE

the 'right way' to distribute and access data files in a packaged Python module

2009-02-02 Thread David Moss
Hi, I'm the author of netaddr :- http://pypi.python.org/pypi/netaddr/0.6 For release 0.6 I've added setuptools support so it can be distributed as a Python egg package using the easy_install tool. In 0.6, I've started bundling some data files from IEEE and IANA with the code below the site-