IronLanguages / ironpython3

Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime.
Apache License 2.0
2.48k stars 287 forks source link

Install setup.py #1794

Open nalsandori opened 5 months ago

nalsandori commented 5 months ago
slozier commented 5 months ago

Does this work?

ipy -X utf8 setup.py install

nalsandori commented 5 months ago
slozier commented 5 months ago

For the import error I'm not sure. Looking at the uninstall error I guess you package is an egg file? Does it appear in your sys.path? For example:

['.', 'C:\\Program Files\\IronPython 3.4\\lib', ..., 'C:\\Program Files\\IronPython 3.4\\lib\\site-packages', 'C:\\Program Files\\IronPython 3.4\\lib\\site-packages\\mytest-0.1-py3.4.egg']

I don't know much about egg files, but I think they're basically just zip files. Once they're in sys.path the import mechanism should be able to load them. It looks like this is normally done via .pth files...

For the package deletion, you could try: ipy -m pip uninstall -y test so it skips the input prompt (which has issues with encoding).

nalsandori commented 5 months ago
slozier commented 5 months ago
* Finally, I already know the command, but I additionally inquire if it can be executed without the following error message

I was suggesting trying the command with the -y argument: ipy -m pip uninstall -y test

nalsandori commented 5 months ago

I am always grateful for your kind explanations.