Great. 10x!
Amit

Alec Warner wrote:
 On Thu, Apr 16, 2009 at 1:17 AM, Zac Medico <zmed...@gentoo.org> wrote:
Amit Dor-Shifer wrote:
>>> I want to read/write an XML file while an ebuild executes. Since I'm
>>> unaware of any XML support in bash, I'm thinking of using python: I'd
>>> write some python code and bundle it somehow into the package, so that
>>> is shall be usable from pkg_XXX scripts.
>>>
>>> I browsed the tree and couldn't find other ebuilds that use python (nor
>>> perl, for that matter),  so I'm doing a sanity check: is this a wrong
>>> path to follow? Appreciate comments. 10x.
>>> Amit
You can use whatever you like as long as you declare it in your
build-time dependencies (DEPEND). If you require that python be
built with the xml USE flag then you should set EAPI="2" and
DEPEND="dev-lang/python[xml]".

> Slight caveat, you can do whatever you want as long as it isn't in
> global scope.  Putting a python script in FILESDIR or bundling it with
> the package is standard procedure, I know a bunch of tcl stuff used to
> use tcl to install itself and distutils.eclass for example runs
> setup.py to install things, so its nothing new.

> -A

>
>


Reply via email to