diff options
author | rahulp13 | 2020-04-01 14:43:56 +0530 |
---|---|---|
committer | rahulp13 | 2020-04-01 14:43:56 +0530 |
commit | 901439bb11d5563e949f7fb8410af0939a0150d0 (patch) | |
tree | fa23aade2cb6e6f2b33a1f91bcf4e6307265d0f3 | |
parent | bd71d27800234b94f90e06f12660b9391a4d586e (diff) | |
download | eSim-901439bb11d5563e949f7fb8410af0939a0150d0.tar.gz eSim-901439bb11d5563e949f7fb8410af0939a0150d0.tar.bz2 eSim-901439bb11d5563e949f7fb8410af0939a0150d0.zip |
update readme - staticx
-rwxr-xr-x | Debian/readme.md | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/Debian/readme.md b/Debian/readme.md index e2d38eb9..c907fb0a 100755 --- a/Debian/readme.md +++ b/Debian/readme.md @@ -2,7 +2,8 @@ eSim Installer (Ubuntu OS) ==== -It contains all the documenation for making eSim executable (using PyInstaller) and eSim Installation Script on Ubuntu 14.04 and above. +It contains all the documenation for making eSim executable (using PyInstaller) and eSim Installation Script on Ubuntu 16.04 and above. + ## eSim Executable: @@ -24,8 +25,8 @@ It contains all the documenation for making eSim executable (using PyInstaller) 3. Install all Python dependencies for eSim within the virtual environment as: - $ pip install pyinstaller $ pip install wheel + $ pip install pyinstaller $ pip install --upgrade 'matplotlib==3.0.3' $ pip install tornado $ pip install --upgrade 'setuptools<45.0.0' @@ -34,8 +35,8 @@ It contains all the documenation for making eSim executable (using PyInstaller) $ cd eSim/build/ $ wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.3/PyQt4_gpl_x11-4.12.3.tar.gz $ wget https://www.riverbankcomputing.com/static/Downloads/sip/4.19.21/sip-4.19.21.tar.gz - $ tar xzvf sip-4.19.21.tar.gz - $ tar xvzf PyQt4_gpl_x11-4.12.3.tar.gz + $ tar -xzvf sip-4.19.21.tar.gz + $ tar -xvzf PyQt4_gpl_x11-4.12.3.tar.gz $ cd sip-4.19.21/ $ python configure.py --sip-module PyQt4.sip $ make @@ -73,6 +74,33 @@ It contains all the documenation for making eSim executable (using PyInstaller) 9. Verify whether all eSim `src` files (`*.py`) have been included in `Analysis-00.toc` file under the build folder generated by PyInstaller. +## Fully-Static Bundled Version of eSim: + +1. To create a [fully-static bundled version](https://github.com/pyinstaller/pyinstaller/wiki/FAQ#GNULinux) of eSim (through PyInstaller), use a tool like [StaticX](https://github.com/JonathonReinhart/staticx/). + +2. To create fully-static eSim : + + - Activate the virtual environment as: + + $ source eSim/bin/activate + + - Install StaticX as: + + $ pip install staticx + $ pip install patchelf-wrapper + + - Create static eSim as: + + $ staticx /path/to/executable/eSim /path/to/output/executable/eSim + +3. To verify if all dynamic libraries are removed : + + - Type following command in a terminal : + + $ ldd path/to/output/executable/eSim + + - Output of above command should be similar to ` not a dynamic executable` + ## How to package eSim? @@ -80,10 +108,10 @@ It contains all the documenation for making eSim executable (using PyInstaller) 2. Add the installer file in `eSim-<version>` folder. -3. Add the eSim executable file in `eSim-<version>` folder. Also, remove following files from the folder: +3. Add the eSim executable file in `eSim-<version>` folder (only if it is made available). Also, remove following files from the folder: - `.git` folder - `code` folder - - `src` folder + - `src` folder (Applicable only if eSim executable is made) - conf.py - setup.py - index.rst |