[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging software for Cheeseshop and Debian



On Thu, 2007-10-11 at 11:08 +1000, Ben Finney wrote:
> So, I ask for help with this specific package, in the hope that I can
> learn more general lessons about packaging software for both Python's
> Cheeseshop and the Debian package system.
> 
>     <URL:http://cheeseshop.python.org/pypi/gracie/>
>     <URL:http://pypi.python.org/packages/source/g/gracie/gracie-0.2.5.tar.gz>
> 
> When I run './setup.py bdist_egg', I get an egg containing *only* the
> modules, not the program 'bin/gracied'. What am I doing wrong that is
> omitting the program from the package? How do I ensure that it will be
> installed properly from the package?

From the looks of your package I don't suppose you're looking for such a
simple answer but the normal way to package executable scripts
would be to specify "scripts = ['bin/gracied']" in your setup,py 

> Also, when installing this package, the destination for the modules is
> the system 'site-packages' directory. These modules, though, are
> specific to this package and its programs; I'd prefer to have them
> installed to a different place, but have no idea how to specify that
> as part of the package metadata or in the 'setup.py'.

I don't know if setuptools or distutils supports packaging private
modules.  Is there a particular reason you want to keep it private
and not installed it alongside other python modules?

> (I'm *not* talking about the install-time option of *overriding* the
> default location, but rather to set the location default in the
> 'setup.py' or other package configuration.)
> 
> 
> As for packaging this for Debian, what do I need to do in addition to
> addressing the above? Bear in mind that I intend to continue
> maintaining this as a setuptools package "upstream", for two reasons:
> I want the benefits of setuptools as already described elsewhere, and
> I want to know how to do this when I'm *not* the upstream developer.
> 
> Thanks for reading, and I hope my learning process can be instructive
> to others.
> 
> -- 
>  \     "Once consumers can no longer get free music, they will have to |
>   `\     buy the music in the formats we choose to put out."  -- Steve |
> _o__)                                  Heckler, VP of Sony Music, 2001 |
> Ben Finney
> 
> 
-- 
sam clegg
:: sam@superduper.net :: http://superduper.net/ :: PGP : D91EE369
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: