[Distutils] Trouble installing Myghty with --prefix
Ian Bicking
ianb at colorstudy.com
Wed Nov 30 17:32:21 CET 2005
skip at pobox.com wrote:
> I tried installing Myghty 0.99a using this command:
>
> python setup.py install --prefix=/usr/local/mojam
>
> (e.g., non-standard install location). It downloaded setuptools and
> installed a bunch of other stuff (Paste, etc), all available as eggs.
> Unfortunately, it didn't create packages and didn't make the pkg_resources
> module available. Any hints about how to get this working would be
> appreciated. (I have no idea what other details you'll need, never having
> used setuptools - directly or indirectly. Let me know if there's more I can
> do to explain the situation.)
I suspect it's because setuptools didn't think that
/usr/local/mojam/lib/... was on the normal site path, and so .pth files
aren't read from the location. And when .pth files aren't read, the
eggs won't be put on the path automatically (though I don't know quite
how setuptools can work at all when that happens).
There's non-root installation instructions on the setuptools site (and
maybe included in easy_install now?) that will create a full Python
environment in a non-standard location, which would probably resolve
this issue.
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Distutils-SIG
mailing list