On May 17, 2008, at 3:39 AM, Eric Mangold wrote:
> I'm trying to use Distutils under SVN Jython, but it seems to be
> broken very badly.
> It blows up because sys.executable is None. Is that normal? Should
> this work, or is Distutils know to be non-functional?
distutils should work fine with a valid sys.executable.
trunk supports a new command line option for specifying the
sys.executable value, it is: -Dpython.executable. We have to
explicitly pass this value to Jython because Java can't determine argv
Being that you're on POSIX, you'll want to modify your jython script
to do something like:
java -Dpython.executable="$0" org.python.util.jython "$@"
or -Dpython.executable="%0" on Windows.