How to make a portable Python script with dependencies on machines without the Internet?

There is:

  • Several machines with Linux Ubuntu 14.04.1 x32
  • Python 2.7.6

Not:

  • setuptools
  • pip
  • the internet

Purpose: to build such a package so that the user downloads it, runs make, and gets a working program on the system.

Dependencies:

mysql-connector (uses distutils to build)

openpyxl (uses pip to build)

upd: everything turned out to be easier than I thought, mysql was built from source, openpyxl was installed locally with pip -t, now users can download the package and install it into the system using make. In principle, all ubuntas are similar, everyone should start.

  • No, well, without setuptools and pip, it's absolutely sad. In general, there is a thing for creating such packages, but I forgot its name ( - andreymal
  • If I understand correctly, the main difficulty is how to install MySQL without the Internet, since both of these packages are pure Python, you can just pack it into one executable file (PyInstaller, cx_Freeze) and even run it from a flash drive. - jfs
  • Do not put the decision (answer) in the question, use the answer form below (for example, you can leave a comment on the decision itself, without touching the question). - jfs

0