From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MFnUB-0002Vu-Np for garchives@archives.gentoo.org; Sun, 14 Jun 2009 11:02:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DCD2E0630; Sun, 14 Jun 2009 11:02:08 +0000 (UTC) Received: from smtp2.cybercity.dk (smtp2.cybercity.dk [212.242.43.252]) by pigeon.gentoo.org (Postfix) with ESMTP id 22D66E0630 for ; Sun, 14 Jun 2009 11:02:08 +0000 (UTC) Received: from ayumi.requisitus.net (port1050.ds1-abc.adsl.cybercity.dk [212.242.155.51]) by smtp2.cybercity.dk (Postfix) with ESMTP id DE66C313C61 for ; Sun, 14 Jun 2009 13:02:06 +0200 (CEST) Received: by ayumi.requisitus.net (Postfix, from userid 1000) id 5C03C43C17; Sun, 14 Jun 2009 12:58:41 +0200 (CEST) Date: Sun, 14 Jun 2009 12:58:41 +0200 From: Khanh Nguyen To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Installing python packages for different versions Message-ID: <20090614105841.GA23804@requisitus.net> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <4A33D76B.1050404@f_philipp.fastmail.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4A33D76B.1050404@f_philipp.fastmail.net> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 19686404-986f-4d7f-9706-bd04f4e8bae1 X-Archives-Hash: 480c90465267e344e1fb888cbbe62ed5 Hi Florian. ** (Sat, Jun 13, 2009 at 06:44:27PM +0200) Florian Philipp wrote: > Hi! > > This is actually a follow-up for my thread "Trouble installing Plone". > > Following scenario: I have packages which run on python-2.4 and other > packages which work with 2.5. Zope is a prominent example of the 2.4 gang. > > The problem: When I emerge a python package, for example > dev-python/imaging, it is only installed in the > /usr/lib/python-2.*/site-packages directory of the python version which > is currently enabled by eselect. > > Naturally, this is the most recent version: 2.5. However, as soon as a > python-2.4 package depends on one of these other packages, it just > doesn't work because it expects them in /usr/lib/python-2.4/site-packages. > > How am I supposed to work around this? With regards to Zope and Plone, use python2.5 but have python2.4 installed and use buildout[1] to fetch Zope/Plone. Zope needs python2.4 with PIL. A quick fix, is to either symlink or copy /usr/lib/python-2.5/site-packages/PIL* to /usr/lib/python-2.4/site-packages/ You also need dev-libs/libxml2 (with python) and symlink/copy to /usr/lib/python-2.4/site-packages/{libxml2*,drv_libxml2} When Python dependencies are in place, you can use buildout to fetch Zope/Plone For this you need dev-python/setuptools. PS! When following the guide[1], remember to bootstrap and buildout with python2.4. eg: python2.4 bootstrap.py && python2.4 ./bin/buildout PSS! If you use sudo and have a restrictive umask for your user, you need to lower it to eg 022 before creating the buildout enviroment. > Regards, > > Florian Philipp > Good luck :) [1] http://plone.org/documentation/tutorial/buildout -- Khanh Nguyen