On Fri, Jun 03, 2005, Tres Seaver wrote:
>I uploaded a set of packages last night which extend Python or Zope (in
>ways similar to the 'perl-<foo>' packages).  I have a couple of
>questions about the work I did:
>
> - The Python add-ons just do the "simplest thing", which is to drop the
>   various artifacts into '<prefix>/lib/python/site-packages'.  They do
>   not create package-specific directories under '<prefix>/lib'.
>
>   An alternate approach would be to create such a directory, e.g.
>   '<prefix>/lib/python-<bar>', and then drop a 'bar.pth' file into
>   the 'site-packages' directory.
>
> - The Zope add-ons *do* create a package-specific lib directory, and
>   then symlink the actual Product directory from there into the
>   Zope "instance home" products directory,
>   '<prefix>/var/zope/Products'.
>
>The difference in approach is due to the fact that I just used Python's
>distutils support to install the Python add-ons, whereas I was following
>my earlier model (from the 'zope-cmf' package) for the Zope add-ons.
>Which approach fits better with the OpenPkg way?

I think that your current approach is correct, and parallels the various
perl packages (e.g. perl-www) which put their components in the same place
that a normal CPAN install would.  Adding ``python-'' in front of the
component names would require fiddling python source, or at least adding
something to the module search path.

Given that I'm doing most of my development now in python after using perl
since version 3.x, I would like to see python packaging similar to the perl
(e.g. python-www, python-mail, etc.) that group related add-ons that aren't
included in the base python.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Cutting the space budget really restores my faith in humanity.  It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation.
                -- Johnny Hart
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to