From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EO2Q7-0004Ep-3T for garchives@archives.gentoo.org; Sat, 08 Oct 2005 00:18:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9809C7J007218; Sat, 8 Oct 2005 00:09:12 GMT Received: from elmer.skumleren.net ([130.226.232.146]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9807UMt011546 for <gentoo-dev@lists.gentoo.org>; Sat, 8 Oct 2005 00:07:30 GMT Received: from localhost (localhost [127.0.0.1]) by elmer.skumleren.net (Postfix) with ESMTP id 94ABE168001 for <gentoo-dev@lists.gentoo.org>; Sat, 8 Oct 2005 02:15:54 +0200 (CEST) Received: from elmer.skumleren.net ([127.0.0.1]) by localhost (elmer.skumleren.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08259-05 for <gentoo-dev@lists.gentoo.org>; Sat, 8 Oct 2005 02:15:51 +0200 (CEST) Received: by elmer.skumleren.net (Postfix, from userid 1000) id 3998D168002; Sat, 8 Oct 2005 02:15:51 +0200 (CEST) Date: Sat, 8 Oct 2005 02:15:51 +0200 From: Anders Bruun Olsen <anders@bruun-olsen.net> To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Python setuptools/eggs Message-ID: <20051008001550.GF2354@elmer.skumleren.net> Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline "X-PGP-Key: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0xD4DEFED0" User-Agent: Mutt/1.5.8i X-Virus-Scanned: amavisd-new at skumleren.net X-Archives-Salt: a95f8e5f-9b16-4b5f-8e4c-875ba5a24228 X-Archives-Hash: a54907487e0dda96255413bde0d16f89 Hi, I wanted to try out the new and fabled TurboGears and found that it uses the new python software distribution tool setuptools and is distributed as python eggs. I can easily install it with setuptools/easy_setup, but I wanted to make an ebuild for TurboGears, which is not just so with setuptools and eggs. I started making ebuilds for the dependencies, but it seems that setuptools has a nasty habit of downloading dependencies for a package if it hasn't been installed by setuptools. So when eg. the new SQLObject 0.7rc1 (which also uses setuptools) depends upon FormEncode (not to mention depends upon setuptools) it does not care that I have already emerged setuptools or FormEncode, it just downloads the egg for it and installs it. It seems that alot of python projects are starting to use setuptools/easy_install/eggs, and granted, it is quite neat, but there needs to figured out a way to handle installing these things through Portage, or alot of new versions are going to be a pain to have installed. How should Portage handle this? I was thinking that maybe hacking up a Gentoo specific version of setuptools that would make it work together with Portage or something like that, but it seems a bit un-gentoo-like. A different approach could be to grab the .egg files and manually install them in the ebuilds, which wouldn't be a problem for pure-python packages, but would suck for packages with c-extensions included, since some might end bound to a specific subset of archs. Instead of me just blindly fumbling in the blind for a way to get ebuilds for TurboGears and it's assorted dependencies, I thought it would be better to get some official guidelines. Some useful URLs: http://peak.telecommunity.com/DevCenter/setuptools http://peak.telecommunity.com/DevCenter/EasyInstall http://peak.telecommunity.com/DevCenter/PythonEggs -- Anders -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y? ------END GEEK CODE BLOCK------ PGPKey: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0xD4DEFED0 -- gentoo-dev@gentoo.org mailing list