openSUSE / opi

OBS Package Installer (CLI)
GNU General Public License v3.0
244 stars 22 forks source link

Upload opi module into pip repo ? #105

Open Watynecc opened 2 years ago

Watynecc commented 2 years ago

Hi I'm using the python310 package instead of the python36 using alternative-update command I wonder if we can use all python version up to 3.6 by using pip package manager ?

Traceback (most recent call last): File "/usr/bin/opi", line 10, in <module> import opi ModuleNotFoundError: No module named 'opi'

asdil12 commented 2 years ago

I'm not 100% sure if I understood what you mean.

Opi is getting installed into a python version specific directory:

rpm -ql opi | head
/usr/bin/opi
/usr/lib/python3.8/site-packages/opi
/usr/lib/python3.8/site-packages/opi-2.4.7-py3.8.egg-info
/usr/lib/python3.8/site-packages/opi/__init__.py
/usr/lib/python3.8/site-packages/opi/__pycache__
/usr/lib/python3.8/site-packages/opi/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/opi/__pycache__/pager.cpython-38.pyc
/usr/lib/python3.8/site-packages/opi/__pycache__/version.cpython-38.pyc
/usr/lib/python3.8/site-packages/opi/backends
/usr/lib/python3.8/site-packages/opi/backends/__init__.py

But you could try to clone this git repo and run python3.10 setup.py install (or whatever python version you prefere).