Project

General

Profile

Building » History » Version 16

Sergey Smolov, 04/06/2023 02:26 PM

1 1 Sergey Smolov
h1. Building
2
3
The tool building is based on the "pyInstaller":http://www.pyinstaller.org/
4
5
h2. Windows
6
7 15 Sergey Smolov
# Install Python 3.* interpreter and _pip_ from "here":https://www.python.org/downloads/
8
# From command prompt install _pyinstaller_ package.
9 1 Sergey Smolov
<pre>
10
pip3 install PyInstaller
11
</pre>
12
# Go to the tool sources folder.
13 2 Sergey Smolov
# Run the following command:
14 1 Sergey Smolov
<pre>
15 15 Sergey Smolov
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\"
16 1 Sergey Smolov
</pre>
17 15 Sergey Smolov
# Go to the _build\target_ subdirectory and zip the result.
18 3 Sergey Smolov
19
h2. Linux
20
21 16 Sergey Smolov
# Install Python 3.* interpreter.
22
# Install _pip_ from "here":https://pip.pypa.io/en/stable/installation
23 3 Sergey Smolov
# Install _pyInstaller_ as follows:
24
<pre>
25 12 Sergey Smolov
pip3 install PyInstaller
26 3 Sergey Smolov
</pre>
27 10 Sergey Smolov
# Go to the @traceutils@ project folder.
28 3 Sergey Smolov
# Run the following command:
29
<pre>
30 14 Sergey Smolov
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/'
31 3 Sergey Smolov
</pre>
32 14 Sergey Smolov
# Go to the _build/target_ subdirectory and zip the result.