[gobolinux-users] trouble with python recipe
Michael Homer
michael at gobolinux.org
Wed May 7 11:09:40 NZST 2008
On Tue, May 6, 2008 at 10:40 PM, Hi There <goboster at yahoo.com> wrote:
> I'm trying to create a recipe for a python program
> called elefant. It's giving me an error about a
> missing directory (at the end of this message), I
> tried adding python_options=("--install-dir $target")
> but then setup.py complained that was an invalid
> option.
<snip>
> [Errno 2] No such file or directory:
> '/Programs/Elefant/0.1.0/lib/python2.5/site-packages/test-easy-install-31240.pth'
>
> The installation directory you specified (via
> --install-dir, --prefix, or
> the distutils default setting) was:
>
>
> /Programs/Elefant/0.1.0/lib/python2.5/site-packages/
>
> This directory does not currently exist. Please
> create it
^^^^^^^ That looks to be the simplest way to fix it - just create that
directory in pre_install() and it should work (or one of the earlier
hooks; I'm not sure when you're getting that error). pre_install() {
mkdir -p $target/lib/python2.5/site-packages; } should do it. A patch
to have their install script do that itself (which I think it should)
would be another way, and you could send that upstream so it wouldn't
be necessary to work around the problem in the future.
-Michael
More information about the gobolinux-users
mailing list