Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] using python in installation scripts
Date: Thu, 16 Apr 2009 08:16:14
Message-Id: 49E6E982.4060306@gentoo.org
In Reply to: [gentoo-portage-dev] using python in installation scripts by Amit Dor-Shifer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Amit Dor-Shifer wrote:
5 > I want to read/write an XML file while an ebuild executes. Since I'm
6 > unaware of any XML support in bash, I'm thinking of using python: I'd
7 > write some python code and bundle it somehow into the package, so that
8 > is shall be usable from pkg_XXX scripts.
9 >
10 > I browsed the tree and couldn't find other ebuilds that use python (nor
11 > perl, for that matter), so I'm doing a sanity check: is this a wrong
12 > path to follow? Appreciate comments. 10x.
13 > Amit
14
15 You can use whatever you like as long as you declare it in your
16 build-time dependencies (DEPEND). If you require that python be
17 built with the xml USE flag then you should set EAPI="2" and
18 DEPEND="dev-lang/python[xml]".
19 - --
20 Thanks,
21 Zac
22 -----BEGIN PGP SIGNATURE-----
23 Version: GnuPG v2.0.11 (GNU/Linux)
24
25 iEYEARECAAYFAknm6YAACgkQ/ejvha5XGaM8SwCffZqf1k/jo0R5drk9IN0zwM6o
26 p0YAn0x0bAGJEe6fNwVJ/pSgRLVSCdrS
27 =Z5Nu
28 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-portage-dev] using python in installation scripts Alec Warner <antarus@g.o>