On Sun, 31 Jan 2010, Manos Tsagias wrote:

I'm trying to install pyLucene on my home dir (I don't have root access to
the machine). I'm using the steps from
http://lucene.apache.org/pylucene/documentation/install.html:

  1. pushd jcc
  2. <edited setup.py to match my environment>
  3. python setup.py build
  4. python setup.py install --home=/my/home/dir
  5. popd
  6. <edited Makefile to match my environment>
  7. make
  8. make install
  9. (PENDING) make test (look for failures)

Step 8 breaks when make tries to install on the system-wide python
repository. How can I change this? The JCC egg is correctly installed in my
home repository

 Hi Manos,

You have several options:

 1. I didn't know about the --home parameter to distutils' install command
    so I just now added support for it. To use it:
     - get the latest PyLucene and JCC from svn at
       http://svn.apache.org/repos/asf/lucene/pylucene/trunk
     - rebuild jcc and install it with --home as before
     - in PyLucene's Makefile, set INSTALL_OPT to contain --home <dir>

 2. Instead of using --home at all, consider setting up a virtual Python
    environment via virtualenv.py instead:
        http://pypi.python.org/pypi/virtualenv
    It seems to be a more 'modern' approach to the whole separate python
    environment approach.

      - python virtualenv.py ~/_python
      - ~/_python/bin/python jcc/setup.py build install
      - edit PyLucene's Makefile to set PREFIX to $(HOME)/_python
      - make
      - make test
      - make install

Andi..

Reply via email to