On Tue, 23 Mar 2010, Bill Janssen wrote:

Hmmm, when I run it by hand, I get this:

PYTHONPATH=x:\pylucene\trunk\build\test /c/Python26/python.exe -m jcc.__main__ 
--shared --compiler mingw32 --find-jvm-dll --jar 
lucene-java-3.0.1/build/lucene-core-3.0.1.jar --jar 
lucene-java-3.0.1/build/contrib/snowball/lucene-snowball-3.0.1.jar --jar 
lucene-java-3.0.1/build/contrib/analyzers/common/lucene-analyzers-3.0.1.jar 
--jar lucene-java-3.0.1/build/contrib/regex/lucene-regex-3.0.1.jar --jar 
lucene-java-3.0.1/build/contrib/memory/lucene-memory-3.0.1.jar --jar 
lucene-java-3.0.1/build/contrib/highlighter/lucene-highlighter-3.0.1.jar --jar 
lucene-java-3.0.1/build/contrib/queries/lucene-queries-3.0.1.jar --jar 
build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime 
--package java.util java.util.Arrays java.text.SimpleDateFormat 
java.text.DecimalFormat java.text.Collator --package java.io 
java.io.StringReader java.io.InputStreamReader java.io.FileInputStream 
--exclude org.apache.lucene.queryParser.Token --exclude 
org.apache.lucene.queryParser.Toke!
nMg
rError --exclude org.apache.lucene.queryParser.QueryParserTokenManager 
--exclude org.apache.lucene.queryParser.ParseException --exclude 
org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude 
org.apache.regexp.RegexpTunnel --python lucene --mapping 
org.apache.lucene.document.Document 
'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 
'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --rename 
org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer --version 
3.0.1 --module python/collections.py --files 3 --install  --install-dir 
x:\pylucene\trunk\build\test
{'ext_modules': [<setuptools.extension.Extension instance at 0x00CA6F30>], 
'name': 'lucene', 'package_data': {'lucene': ['lucene-core-3.0.1.jar', 
'lucene-snowball-3.0.1.jar', 'lucene-analyzers-3.0.1.jar', 'lucene-regex-3.0.1.jar', 
'lucene-memory-3.0.1.jar', 'lucene-highlighter-3.0.1.jar', 
'lucene-queries-3.0.1.jar', 'extensions.jar']}, 'version': '3.0.1', 'zip_safe': 
False, 'script_args': ['build_ext', '--compiler=mingw32', 
'--define=PYTHON,_jcc_shared', 'install', '--install-lib=x:pylucenetrunkbuildtest'], 
'packages': ['lucene'], 'package_dir': {'lucene': 'build\\lucene'}}
running build_ext
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

   [Errno 2] No such file or directory: 
'x:pylucenetrunkbuildtest\\test-easy-install-2160.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

   x:pylucenetrunkbuildtest\

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

make: *** [install-test] Error 1

wjans...@marlowe-vm /x/pylucene/trunk
$

I think this means that the "install_dir" arg is being evaled as a
string somewhere in the JCC code, so that non-doubled backslashes are
lost.

No, we already verified that the string is passed on unadultered by JCC.

I'd expect your shell (unless it's the actual DOS shell) to swallow unquoted backslashes.

Andi..

Reply via email to