Project

General

Profile

Building » History » Version 5

Sergey Smolov, 04/19/2017 11:00 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 5 Sergey Smolov
pyinstaller traceutils\tarmac_trace_matcher.py.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 5 Sergey Smolov
pyinstaller traceutils/tarmac_trace_matcher.py -n traceutils --add-data ''LICENSE:.'' --add-data ''README:.'' -p traceutils/:traceutils/record/ -d
46 3 Sergey Smolov
</pre>
47
# Go to the _dist_ subdirectiry and zip the result.