Sorry if this has been covered in the past. I'm new to this sig. I DID search the archives, and didn't come up with anything of help. Is there distutil support for jython? i tried to install it, but of course setup.py wouldn't run because distutils module wasnt there :) Chicken n egg. If indeed there is no support for jython, how do jython developers install python modules? Thanks Raj Datta Professional Services Direct : 408-530-4932 CrossAccess Corp Cell : 408-316-5473 2900 Gordon Ave #100 Fax : 408-735-0328 Santa Clara CA 95051 Email : rdatta@crossaccess.com
On Thu, Sep 27, 2001 at 07:02:24AM -0700, R Datta wrote:
Is there distutil support for jython? i tried to install it, but of course setup.py wouldn't run because distutils module wasnt there :) Chicken n egg.
It may not run, but it shouldn't be because the distutils code is inaccessible. When you download the Distutils standalone distribution and run the setup.py, it should be importing the distutils package from the current directory. When I try running the setup.py with jython it fails, but with an exception: AttributeError: class 'org.python.modules.os' has no attribute 'utime' Presumably Java's lowest-common-denominator portability doesn't support os.utime(). Patches to make the code work with Jython would be welcome. --amk
I had to modify the install.py file to add the following term to the dictionary INSTALL_SCHEMES 'java': { 'purelib': '$base', 'platlib': '$base', 'headers': '$base/Include/$dist_name', 'scripts': '$base/Scripts', 'data' : '$base', }, This is because os.name returns java After making the change, i "graduated" to the error you mentioned. I will try and fix this in the os module. Raj At 12:45 PM 9/28/2001, distutils-sig-admin@python.org wrote:
On Thu, Sep 27, 2001 at 07:02:24AM -0700, R Datta wrote:
Is there distutil support for jython? i tried to install it, but of course setup.py wouldn't run because distutils module wasnt there :) Chicken n egg.
It may not run, but it shouldn't be because the distutils code is inaccessible. When you download the Distutils standalone distribution and run the setup.py, it should be importing the distutils package from the current directory.
When I try running the setup.py with jython it fails, but with an exception:
AttributeError: class 'org.python.modules.os' has no attribute 'utime'
Presumably Java's lowest-common-denominator portability doesn't support os.utime(). Patches to make the code work with Jython would be welcome.
--amk
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Thanks Raj Datta Professional Services Direct : 408-530-4932 CrossAccess Corp Cell : 408-316-5473 2900 Gordon Ave #100 Fax : 408-735-0328 Santa Clara CA 95051 Email : rdatta@crossaccess.com
participants (2)
-
Andrew Kuchling
-
R Datta