Project

General

Profile

Building » History » Revision 15

Revision 14 (Sergey Smolov, 04/05/2023 06:17 PM) → Revision 15/16 (Sergey Smolov, 04/05/2023 07:06 PM)

h1. Building 

 The tool building is based on the "pyInstaller":http://www.pyinstaller.org/ 

 

 h2. Windows 

 # Install Python 3.* interpreter and _pip_ from "here":https://www.python.org/downloads/ 
 # From Install PyWin32 from "here":https://github.com/mhammond/pywin32/releases 
 # Get pip-Win Python package manager from "here":https://sites.google.com/site/pydatalog/python/pip-for-windows and run it. 
 # In the pip-Win Command field enter the following: 
 <pre> 
 venv -c -i    pyi-env-name 
 </pre> 
 then click Run. 
 This creates a new virtual environment rooted at C:\Python\pyi-env-name and makes it the current environment. A new command prompt install _pyinstaller_ package. shell window opens in which you can run commands within this environment. Enter the command: 
 <pre> 
 pip3 install PyInstaller 
 </pre> 
 # Once pyInstaller is installed, start pip-Win, in the Command field enter the following: 
 <pre> 
 venv pyi-env-name 
 </pre> 
 then click Run. 
 # Go to the tool sources folder. 
 # Run the following command: 
 <pre> 
 pyinstaller src\traceutils\trace_matcher.py --distpath build\target traceutils\trace_matcher.py -n traceutils --add-data "LICENSE;." --add-data "README.md;." --add-data "ChangeLog.md;." -p "src\traceutils\;src\traceutils\record\" --add-data="LICENSE;." --add-data="README;." -p="traceutils;traceutils\record" -d 
 </pre> 
 # Go to the _build\target_ _dist_ subdirectory and zip the result. 

 h2. Linux 

 # Get _pip_ installation script from "here":https://pip.pypa.io/en/stable/installing/ and install it: 
 <pre> 
 $ sudo apt install curl 
 $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 
 </pre> 
 # Run the _pip_ installation script as follows: 
 <pre> 
 sudo python3 get-pip.py 
 </pre> 
 # Install _pyInstaller_ as follows: 
 <pre> 
 pip3 install PyInstaller 
 </pre> 
 # Go to the @traceutils@ project folder. 
 # Run the following command: 
 <pre> 
 pyinstaller src/traceutils/trace_matcher.py --distpath ./build/target -n traceutils --add-data 'LICENSE:.' --add-data 'README.md:.' --add-data 'ChangeLog.md:.' -p 'src/traceutils/:src/traceutils/record/' 
 </pre> 
 # Go to the _build/target_ subdirectory and zip the result.