Message11636

Author jeff.allen
Recipients Roja, jeff.allen
Date 2017-10-30.07:30:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509348650.19.0.213398074469.issue2637@psf.upfronthosting.co.za>
In-reply-to
Content
If pip finds the CPython installation, then almost certainly you have run the copy of pip that comes with CPython. I tried this myself and it seemed to install ok. Sorry, this is Windows PowerShell, but you'll be able to translate ...

PS issue2637> java -jar D:\InstKits\jython.org\jython-installer-2.7.1.jar

... here I specified it should install in .\inst, to keep it separate from any other Jythons.

Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.1 setuptools-28.8.0

PS issue2637> $env:PATH=".\inst\bin;"+$env:PATH
PS issue2637> $env:PATH
.\inst\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\; ...

... You can check which pip you get with:

PS issue2637> pip -V
pip 9.0.1 from C:\Users\Jeff\Documents\Jython\issue2637\inst\Lib\site-packages (python 2.7)

PS issue2637> pip install robotframework
Collecting robotframework
  Downloading robotframework-3.0.2.tar.gz (440kB)
    100% |████████████████████████████████| 450kB 435kB/s
Installing collected packages: robotframework
  Running setup.py install for robotframework ... done
Successfully installed robotframework-3.0.2

On Windows this leaves me with a jybot.bat in .\inst\bin which seems to be the Jython-specific launcher. I can at least run --help at this point, but didn't try any real work. No doubt it is slightly different on a Mac. I'm not sure how Eclipse connects to this, but it will clearly be important that it too finds the right installation of robot and invokes it with Jython, not CPython.

If that has answered it for you, I'll mark this as not a bug and close.
History
Date User Action Args
2017-10-30 07:30:50jeff.allensetmessageid: <1509348650.19.0.213398074469.issue2637@psf.upfronthosting.co.za>
2017-10-30 07:30:50jeff.allensetrecipients: + jeff.allen, Roja
2017-10-30 07:30:49jeff.allenlinkissue2637 messages
2017-10-30 07:30:48jeff.allencreate