[Distutils] "Python Package Management Sucks"

Josselin Mouette joss at debian.org
Fri Oct 3 14:42:58 CEST 2008


Le vendredi 03 octobre 2008 à 15:57 +1300, Greg Ewing a écrit :
> On Thu, Oct 02, 2008 at 01:20:45PM +0200, Josselin Mouette wrote:
> > Sorry, but things don’t work this way. Anything that is *not* a .py file
> > should not land in the python module directories.
> 
> So where *should* they go, on platforms where there is
> no defined place for such things? 

If there is no standard place, you can simply define one.

> And how can the code
> that uses them find them without platform-specific
> knowledge?

With a simple API to locate them. In fact, you don’t even need an API.
If you distribute a python program using autoconf, you can simply say:
	mydata = file (@datadir@ "/blah/blahblah.dat",'r')
call the file blah.py.in, and add it to AC_CONFIG_FILES. Autoconf will
detect the correct directory depending on the platform.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20081003/8302c1f1/attachment.pgp>


More information about the Distutils-SIG mailing list