0

My Python projects heavily depends on PyPi packages.
I want to make sure that: in any time in the future: the packages required by my apps will always be available online on PyPi.
For example:-
I found a project on Github that requires PyQt4.
when I tried to run it on my Linux machine,
it crashed on startup because it can't find PyQt4 package on PyPi.

NB: I know that PyQt4 is deprecated

I searched a lot to find an archive for PyPi that still holds PyQt4 package, but I couldn't find them anywhere.

so I had to rewrite that app to make it work on PyQt5.
I only changed the code related to the UI (ie: PyQt4).
other functions were still working.

so the only problem with that app was that PyQt4 package was removed from PyPi.



so, my question is: should I save a backup of the PyPi packages I use ?
ibrahem
  • 370
  • 3
  • 12
  • https://pypi.org/project/PyQt4/ ? – CrazyChucky May 13 '22 at 16:45
  • This might be a stupid question, but did you try `pip install PyQt4`? – CrazyChucky May 13 '22 at 16:47
  • yes, I had tried that. PyQt4 is not installable by this way. https://i.stack.imgur.com/otZF9.png – ibrahem May 13 '22 at 16:53
  • It's not a bad idea to use a local Nexus repository for something like this – Torc May 13 '22 at 16:55
  • 1
    Ah, my mistake, it's listed on PyPi even though the downloadable files are [elsewhere](https://riverbankcomputing.com/software/pyqt/download). You could try installing those. Although, submitting a pull request to the Github project with your updates is probably the best option, long-term. – CrazyChucky May 13 '22 at 17:12

0 Answers0