Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 81098 invoked from network); 31 Jan 2010 22:12:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Jan 2010 22:12:05 -0000 Received: (qmail 7586 invoked by uid 500); 31 Jan 2010 22:12:05 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 7518 invoked by uid 500); 31 Jan 2010 22:12:05 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 7508 invoked by uid 99); 31 Jan 2010 22:12:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Jan 2010 22:12:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tsagias@gmail.com designates 209.85.219.210 as permitted sender) Received: from [209.85.219.210] (HELO mail-ew0-f210.google.com) (209.85.219.210) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Jan 2010 22:11:56 +0000 Received: by ewy2 with SMTP id 2so4220416ewy.5 for ; Sun, 31 Jan 2010 14:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=m0wWR3rqpjVA0tQcw1n9BxyEv9/Dr0tqEiCaGk8kO88=; b=is3X6DI/RWYK4xVFIBpZfx3BP2e0zjN/11an1nzvCPIdi5lZ3J8e6PLey74HxhJEBf lxfQ53Cl62FRwiOirfLqJqf+3DTsqUbwrNj5WREnUO6988qvQgW5hEESFRv+z9bgDg2J VxJRr13xZvTktzj9xsvG+qixQpmpJS6ZL0LDI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PSNI1S5ZB/pf95quuUWpJ3+l6zGuGIJbTfYDfX6dgQEjfT4BjBciX0G3jsc2Pzc+S+ f3M/q/mBMRJWUvcEwNgThdBMs8eBKKLb+WtChQ4cX6YPqQo5SL/jdvAwW/9NUbOkdQx+ Et9ACeZZ4XTKZ8yzCDnvXiIl0m7nOZrkCyeBA= MIME-Version: 1.0 Received: by 10.216.90.131 with SMTP id e3mr2054840wef.69.1264975896503; Sun, 31 Jan 2010 14:11:36 -0800 (PST) In-Reply-To: References: <27def3c71001310259h279b3aaene854ab3206b5b9fc@mail.gmail.com> Date: Sun, 31 Jan 2010 23:11:36 +0100 Message-ID: <27def3c71001311411r28e6fa63vb739b15ac5036dd@mail.gmail.com> Subject: Re: Local install of pyLucene From: Manos Tsagias To: pylucene-dev@lucene.apache.org, Andi Vajda Content-Type: multipart/alternative; boundary=0016e6dab171f5e5bf047e7d2692 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6dab171f5e5bf047e7d2692 Content-Type: text/plain; charset=ISO-8859-1 Hi Andi, thanks for the quick reply! I tried once to setup a virtual python env but as far as I remember it didn't work out for me. My module repository has grown large enough now and I don't want to risk breaking any dependencies at the moment by converting to virtual python. I should do so in the future though .. 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 I set INSTALL_OPT=--home $HOME/_python. Then I got the following error: Traceback (most recent call last): File "/usr/lib64/python2.5/runpy.py", line 95, in run_module filename, loader, alter_sys) File "/usr/lib64/python2.5/runpy.py", line 52, in _run_module_code mod_name, mod_fname, mod_loader) File "/usr/lib64/python2.5/runpy.py", line 32, in _run_code exec code in run_globals File "$HOME/_python/lib64/python2.5/site-packages/JCC-2.5-py2.5-linux-x86_64.egg/jcc/__init__.py", line 27, in import jcc.__main__ File "$HOME/_python/lib64/python2.5/site-packages/JCC-2.5-py2.5-linux-x86_64.egg/jcc/__main__.py", line 88, in cpp.jcc(sys.argv) File "$HOME/_python/lib64/python2.5/site-packages/JCC-2.5-py2.5-linux-x86_64.egg/jcc/cpp.py", line 418, in jcc raise ValueError, "Invalid argument: %s" %(arg) ValueError: Invalid argument: --home make: *** [install] Error 255 am I setting INSTALL_OPT correctly? Also, when I ran "make" (STEP 7), it exported first a revision before starting compiling. Is that normal? Thanks again, Manos._ On Sun, Jan 31, 2010 at 10:35 PM, Andi Vajda wrote: > > 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. >> 3. python setup.py build >> 4. python setup.py install --home=/my/home/dir >> 5. popd >> 6. >> 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 > > 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.. > --0016e6dab171f5e5bf047e7d2692--