X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0	tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: 1.7.5: ant no longer finds python: upgrade from 1.5 suspected
Date: Mon, 14 Jun 2010 16:35:36 -0700
Message-ID: <27D7F4C907BCB14FAF95CC4E25AB1FE6AF5561@ex2.AdBriteInc.local>
From: "Bill Ross" <bross@adbrite.com>
To: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Could ant be thrown off by a 1.7 upgrade? The upgrade is the only big chang=
e since things were last working, and another person who upgraded is showin=
g the same symptom (no one else handy to compare with).
An ant build setup no longer finds python. It seems like it used cygwin's p=
ython before, but ant can't find python now. The cmd line that worked befor=
e is given below, plus a small test case.

-bash-3.2$ ant dist
=A0[...]
=A0=A0=A0 C:\svn\trunk\tools\build\wsdl\build.xml:60: Execute failed: java.=
io.IOException: Cannot run program "python":
=A0=A0=A0 =A0CreateProcess error=3D2, The system cannot find the file speci=
fied

See build.xml testcase below. Same result with "python" and "python.exe".

-bash-3.2$ which ant
/cygdrive/c/Program Files/Apache Software Foundation/apache-ant-1.7.1/bin/a=
nt

-bash-3.2$ which python
/bin/python

=3D=3D=3D=3D=3D=3D=3D build.xml ('ant dist' to reproduce)
<?xml version=3D"1.0"?><!-- -*- indent-tabs-mode: nil; -*- -->
<project name=3D"test_python" default=3D"dist">

=A0 <target name=3D"dist">
=A0=A0=A0=A0=A0 <exec executable=3D"python">
=A0=A0=A0=A0=A0=A0=A0 <arg value=3D"test.py"/>
=A0=A0=A0=A0=A0 </exec>
=A0 </target>
</project>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Bill



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

