Project

General

Profile

Building » History » Version 8

Sergey Smolov, 06/15/2017 11:25 AM

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
# Install Python 2.* interpreter from "here":https://www.python.org/downloads/
8
# Install PyWin32 from "here":https://sourceforge.net/projects/pywin32/files/
9
# Get pip-Win Python package manager from "here":https://sites.google.com/site/pydatalog/python/pip-for-windows and run it.
10
# In the pip-Win Command field enter the following:
11
<pre>
12
venv -c -i  pyi-env-name
13
</pre>
14
then click Run.
15
This creates a new virtual environment rooted at C:\Python\pyi-env-name and makes it the current environment. A new command shell window opens in which you can run commands within this environment. Enter the command:
16
<pre>
17
pip install PyInstaller
18
</pre>
19
# Once pyInstaller is installed, start pip-Win, in the Command field enter the following:
20
<pre>
21
venv pyi-env-name
22
</pre>
23
then click Run.
24 2 Sergey Smolov
# Go to the tool sources folder.
25 1 Sergey Smolov
# Run the following command:
26
<pre>
27 7 Sergey Smolov
pyinstaller traceutils\trace_matcher.py -n traceutils --add-data="LICENSE;." --add-data="README;." -p="traceutils;traceutils\record" -d
28 1 Sergey Smolov
</pre>
29
# Go to the _dist_ subdirectory and zip the result.
30 3 Sergey Smolov
31
h2. Linux
32
33
# Get _pip_ installation script from "here":https://pip.pypa.io/en/stable/installing/
34
# Run the _pip_ installation script as follows:
35
<pre>
36
sudo python get-pip.py
37
</pre>
38
# Install _pyInstaller_ as follows:
39
<pre>
40
sudo pip install pyinstaller
41
</pre>
42
# Go to the tool source folder.
43
# Run the following command:
44
<pre>
45 6 Sergey Smolov
pyinstaller traceutils/trace_matcher.py -n traceutils --add-data ''LICENSE:.'' --add-data ''README:.'' -p traceutils/:traceutils/record/ -d
46 3 Sergey Smolov
</pre>
47 8 Sergey Smolov
# Go to the _dist_ subdirectory and zip the result.