Project

General

Profile

Building » History » Version 15

Sergey Smolov, 04/05/2023 07:06 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 11 Sergey Smolov
# Get _pip_ installation script from "here":https://pip.pypa.io/en/stable/installing/ and install it:
22
<pre>
23
$ sudo apt install curl
24
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
25
</pre>
26 3 Sergey Smolov
# Run the _pip_ installation script as follows:
27
<pre>
28 9 Sergey Smolov
sudo python3 get-pip.py
29 3 Sergey Smolov
</pre>
30
# Install _pyInstaller_ as follows:
31
<pre>
32 12 Sergey Smolov
pip3 install PyInstaller
33 3 Sergey Smolov
</pre>
34 10 Sergey Smolov
# Go to the @traceutils@ project folder.
35 3 Sergey Smolov
# Run the following command:
36
<pre>
37 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/'
38 3 Sergey Smolov
</pre>
39 14 Sergey Smolov
# Go to the _build/target_ subdirectory and zip the result.