Python Forum
Package Update without Internet Access on Host - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Package Update without Internet Access on Host (/thread-17058.html)



Package Update without Internet Access on Host - pythonator - Mar-26-2019

I can't seem to find an answer to the question of how to update packages when I cannot use pip due to no internet access on box. I have been installing new packages from source using the python setup.ph install method with success. But how to I update an existing package using a similar method? If I just install a newer package will it replace the older one or am I going to end up with two versions installed? Or worse?

Thanks.


RE: Package Update without Internet Access on Host - Larz60+ - Mar-26-2019

Quote: have been installing new packages from source using the python setup.ph install method
think you mean setup.py
You can reinstall new package, which should replace old version.
I would backup old version first, just in case.


RE: Package Update without Internet Access on Host - pythonator - Mar-26-2019

(Mar-26-2019, 08:03 PM)Larz60+ Wrote:
Quote: have been installing new packages from source using the python setup.ph install method
think you mean setup.py
You can reinstall new package, which should replace old version.
I would backup old version first, just in case.

Sorry for the typo... you are correct: setup.py.

Thanks for the info! I'll give it a go.


RE: Package Update without Internet Access on Host - pythonator - Mar-27-2019

Well this didn't work the way we thought. I downloaded and extracted the source for setuptools...

# cd /usr/local/src/setuptools-40.8.0
# /usr/uv/python/bin/python3 setup.py install

It ended up installing it along side the old version....
drwxrwxr-x 2 root root 4096 Feb 18 2015 setuptools-2.1.dist-info_bak
-rw-r--r-- 1 root root 1045146 Mar 27 13:46 setuptools-40.8.0-py3.4.egg
drwxrwxr-x 5 root root 4096 Feb 18 2015 setuptools_bak
-rw-r--r-- 1 root root 30 Mar 27 13:46 setuptools.pth

I had to rename setuptools-2.1.dist-info and setuptools so it would pick up the new version. Then we were good.

Do I need to do anything more than remove those two directories I renamed to remove the old package or is the more I need to do?

Thanks.