#offline #pip #wheel

app poit

Pip offline installation tool

3 releases

0.1.6 Sep 20, 2024
0.1.5 Sep 19, 2024
0.1.4 Sep 19, 2024

#738 in Command line utilities

Download history 297/week @ 2024-09-14 100/week @ 2024-09-21 23/week @ 2024-09-28

54 downloads per month

GPL-3.0-only

25KB
440 lines

poit-rs

Pip offline installation tool.

Rust

Requirements

  • Two servers, one can be networked called A, one can not be networked called B.
  • A server with the same architecture as the B server, and with a good network.
  • The pip (or pip3) is installed.
  • Both servers must have sufficient hard disk space.

Usage

In A server, pack all the dependencies of a pip package

We use ipython as example.

Create a work folder.

root@debian:~# mkdir test
root@debian:~# cp poit test/
root@debian:~# cd test

Start packing.

root@debian:~/test# ./poit --pack ipython

Or package a specific version of the software.

root@debian:~/test# ./poit --pack ipython --package-version 8.26.0

Or package with specific python version.

root@debian:~/test# ./poit --pack ipython --python-version 3.12

These three files will appear in the directory.

root@debian:~/test# ls
ipython.poit  ipython.poit.sha256  poit

Do not change any files, including naming and content, and make sure all three files are copied to a USB or CD.

In B server, offline installation of ipython

Check for the presence of these three files.

root@debian:~/test# ls
ipython.poit  ipython.poit.sha256  poit

Start offline installation.

root@debian:~/test# ./poit --install ipython.poit

Or

root@debian:~/test# ./poit --install ipython.poit --package-version 8.26.0

If this process does not have any error messages, the installation is successful and you can now use the offline installed ipython.

Dependencies

~4–13MB
~147K SLoC