h2o4gpu icon indicating copy to clipboard operation
h2o4gpu copied to clipboard

make wheel with all deps for offline install

Open pseudotensor opened this issue 6 years ago • 4 comments

https://medium.com/@amimahloof/how-to-package-a-python-project-with-all-of-its-dependencies-for-offline-install-7eb240b27418

pseudotensor avatar Jun 06 '18 21:06 pseudotensor

assume conda version will suffice. @hemenkapadia

pseudotensor avatar Sep 28 '18 17:09 pseudotensor

@pseudotensor - it will not. Similar to pip, conda also downloads additional dependencies from the internet. Conda can definitely be leveraged to create a dependency tree and download all the requisite bz2 packages locally. the local directory can then be converted to a channel and be used for offline install. This entire structure can be shipped as a self containing archive if needed.

I can try to work on such a script this weekend that can convert any conda env for offline install. That will serve the purpose

hemenkapadia avatar Sep 28 '18 18:09 hemenkapadia

I thought that was the original motivation, to be able to install DAI without internet.

pseudotensor avatar Sep 28 '18 18:09 pseudotensor

Yes, for the customer that requirement can be met as they have subscription to anaconda enterprise which provides the offline install service as part of that subscription. But only if the packages are available on anaconda.org.

By publishing conda packages we have solved that problem for them (and offloaded the responsibility to help with offline install to anaconda)

If we need a general self contained packed for offline install by any user - then we can use the conda to resolve all the dependencies use that graph to create the self contained artifact, which is what the proposed script will do.

hemenkapadia avatar Sep 28 '18 18:09 hemenkapadia