Andi Vajda <va...@apache.org> wrote: > On Tue, 23 Mar 2010, Bill Janssen wrote: > > > wjans...@marlowe-vm /x/pylucene/trunk > > $ mkdir build/test > > mkdir: cannot create directory `build/test': File exists > > > > wjans...@marlowe-vm /x/pylucene/trunk > > If the windows path is x:\pylucene\trunk, isn't the corresponding > cygwin path something like //cygdrive/x/pylucene/trunk ? > > In PyLucene's Makefile, around line 249, BUILD_TEST is set to a unix > style path based on $(shell pwd). That thing is then converted to a > windows-style path using cygpath. Are these paths valid on your system?
The paths are valid, but I'm using msys, not cygwin. msys messes less with your system. There's no cygpath, so I'm not sure how this Windows-style path is being generated. $(shell pwd) works fine. The appropriate program under msys seems to be "p2w", so I tried adding a clause to the Makefile for that, but it doesn't work. Here's what the result of p2w is: $ p2w /x/pylucene/trunk/build/test x:/pylucene/trunk/build/test $ That's a valid Windows path, but I get the same error: $ make test mkdir -p `p2w /x/pylucene/trunk/build/test` PYTHONPATH=`p2w /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.T okenMgrError --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 `p2w /x/pylucene/trunk/build/test` running build_ext running install Checking .pth file support in x:pylucene\trunk\build\test\ 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:pylucene\\trunk\\build\\test\\test-easy-install-3224.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: x:pylucene\trunk\build\test\ 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 Bill