Open tzachshabtay opened 6 years ago
This has not been tested at all, so you are breaking new ground. The net45 is a known issue (I think there is already an issue filed for it). net40 is going to be removed soon, so don't spend any time on that. For the .NET Core, it looks like _ctypes is required, I thought we had that for .NET Core though, so I don't know why its failing like that.
@slide No support for ctypes on .NET Core at the moment. I don't remember what was the blocking factor...
@slozier did some nice work in #365 to get ctypes working with .net core.
I tried with the latest bits and am still getting some issues. With Mono:
Exception:
Traceback (most recent call last):
File "/tmp/tmplrCmUX/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/tmp/tmplrCmUX/pip-8.1.1-py2.py3-none-any.whl/pip/commands/install.py", line 313, in run
requirement_set.install(
File "/mnt/c/IronPython.2.7.9-candidate1/Lib/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/tmp/tmplrCmUX/pip-8.1.1-py2.py3-none-any.whl/pip/utils/logging.py", line 36, in indent_log
yield
Error: `/mnt/c/IronPython.2.7.9-candidate1/lib/python2.7/site-packages/setuptools-20.10.1.dist-info/RECORD.pip` and `/mnt/c/IronPython.2.7.9-candidate1/lib/python2.7/site-packages/setuptools-20.10.1.dist-info/RECORD` are the same file
With .NET Core it works the first time around, however the files are ending up in an odd location: /mnt/c/IronPython.2.7.9-candidate1/Lib/python2.7/site-packages
. Also, if I try to install again I get an error:
Traceback (most recent call last):
File "/tmp/tmpXMmD4P/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/tmp/tmpXMmD4P/pip-8.1.1-py2.py3-none-any.whl/pip/commands/install.py", line 313, in run
requirement_set.install(
File "/mnt/c/IronPython.2.7.9-candidate1/Lib/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/tmp/tmpXMmD4P/pip-8.1.1-py2.py3-none-any.whl/pip/utils/logging.py", line 36, in indent_log
yield
Error: `/tmp/pip-build-OBEpFJ/setuptools/easy_install.py` and `/mnt/c/IronPython.2.7.9-candidate1/lib/python2.7/site-packages/easy_install.py` are the same file
The exceptions above have been resolved, however there are more issues to figure out, for example:
Looks like the install folder is from in setuptools (easy_install.py):
INSTALL_SCHEMES = dict(
posix=dict(
install_dir='$base/lib/python$py_version_short/site-packages',
script_dir='$base/bin',
),
)
Is there any update on closing this issue?
It looks as if this is the only issue holding up the 2.7.9 release.
There is still a fair amount of work that needs to be done here, I think we might remove this from the 2.7.9 milestone.
I think it was somewhat working with the latest bits (at least the Mono version). I will have to try it again to double check.
Hi, downloaded the zip file from release 2.7.8. I'm trying to install pip for IronPython on ubuntu 16.04 LTS 64 bits.
Tried the dotnet core runtime first with
bash netcoreapp2.0/ipy.sh -X Frames -m ensurepip
and got:That's after I've set
IRONPYTHONPATH
to point at Lib.Then I tried mono with net40 with
mono net40/ipy.exe -X Frames -m ensurepip
and got:Finally I tried mono with net45 with
mono net44/ipy.exe -X Frames -m ensurepip
and got:Can any of those be made to work? Thanks.