[pylucene-dev] Re: "make install" to a specific destination directory

Andi Vajda vajda at osafoundation.org
Fri Sep 26 09:31:29 PDT 2008


On Fri, 26 Sep 2008, Bill Janssen wrote:

> I'm trying to do a "make install" of PyLucene to a packaging directory,
> and I don't see how to get it to install other than into the Python's
> site-packages directory.
>
> When I run jcc with the --install flag, what options can be passed?

The following is done in python.py:

     if install:
         script_args.append('install')
     if prefix:
         script_args.append('--prefix=%s' % prefix)
     if root:
         script_args.append('--root=%s' % root)
     if install_dir:
         script_args.append('--install-lib=%s' % install_dir)

Hence you can pass --prefix, --root and --install-dir along with --install.
These parameters are passed on to distutils/setuptools where they get their 
meaning and implementation [1][2].

Andi..

[1] http://docs.python.org/dist/dist.html
[2] http://peak.telecommunity.com/DevCenter/setuptools


More information about the pylucene-dev mailing list