diff options
-rwxr-xr-x | Debian/install-eSim.sh | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | Debian/readme.md | 32 |
2 files changed, 21 insertions, 13 deletions
diff --git a/Debian/install-eSim.sh b/Debian/install-eSim.sh index 26a7338a..d7a3c572 100755 --- a/Debian/install-eSim.sh +++ b/Debian/install-eSim.sh @@ -55,6 +55,7 @@ function installNghdl unzip nghdl-master.zip mv nghdl-master nghdl cd nghdl/ + chmod +x install-nghdl.sh ./install-nghdl.sh --install if [ $? -ne 0 ];then @@ -315,6 +316,7 @@ elif [ $option == "--uninstall" ];then rm -rf library/modelParamXML/Nghdl/* cd nghdl/ if [ $? -eq 0 ];then + chmod +x install-nghdl.sh ./install-nghdl.sh --uninstall cd ../ rm -rf nghdl diff --git a/Debian/readme.md b/Debian/readme.md index 320bb153..e2d38eb9 100644..100755 --- a/Debian/readme.md +++ b/Debian/readme.md @@ -6,22 +6,27 @@ It contains all the documenation for making eSim executable (using PyInstaller) ## eSim Executable: -1. Download `virtualenv` package as: +> Note: pip tool corresponds to Python-3.5.2 on Ubuntu 16.04 and Python-3.6.9 on Ubuntu 18.04 - $ pip install virtualenv +1. Download `virtualenv` package and create virtual environment as: -2. Create a virtual environment as: + $ pip install virtualenv + $ virtualenv -p /usr/bin/python3 eSim - $ virtualenv -p /usr/bin/python3 eSim + OR + + $ sudo apt install -y python3-venv + $ python3 -m venv eSim -3. Activate the virtual environment as: +2. Activate the virtual environment as: $ source eSim/bin/activate -4. Install all Python dependencies for eSim within the virtual environment as: +3. Install all Python dependencies for eSim within the virtual environment as: $ pip install pyinstaller - $ pip install matplotlib + $ pip install wheel + $ pip install --upgrade 'matplotlib==3.0.3' $ pip install tornado $ pip install --upgrade 'setuptools<45.0.0' $ sudo apt install build-essential python3-dev libqt4-dev qt4-dev-tools @@ -40,7 +45,7 @@ It contains all the documenation for making eSim executable (using PyInstaller) $ make $ make install -5. Test whether only eSim dependencies are available or not: +4. Test whether only eSim dependencies are available or not: $ pip freeze @@ -53,19 +58,19 @@ It contains all the documenation for making eSim executable (using PyInstaller) > - six > - cycler.py -6. Download eSim Manual from eSim website, add it to `library/browser/User-Manual/` and update the file name of Manual in `src/browser/UserManual.py` accordingly. +5. Download eSim Manual from eSim website, add it to `library/browser/User-Manual/` and update the file name of Manual in `src/browser/UserManual.py` accordingly. -7. Create spec file as: +6. Create spec file as: $ pyi-makespec --onefile -n eSim <path_to_eSim>/src/frontEnd/Application.py -8. Add `PyQt4.sip` as hiddenimports in the generated spec file. +7. Add `PyQt4.sip` as hiddenimports in the generated spec file. -9. Create onefile executable using pyinstaller as: +8. Create onefile executable using pyinstaller as: $ pyinstaller -F --clean eSim.spec -11. Verify whether all eSim `src` files (`*.py`) have been included in `Analysis-00.toc` file under the build folder generated by PyInstaller. +9. Verify whether all eSim `src` files (`*.py`) have been included in `Analysis-00.toc` file under the build folder generated by PyInstaller. @@ -91,3 +96,4 @@ It contains all the documenation for making eSim executable (using PyInstaller) 5. Compress `kicadLibrary` folder to a `tar.xz` format. 6. Compress `eSim-<version>` to a zip format for distribution. + |