Project

General

Profile

Actions

Building » History » Revision 3

« Previous | Revision 3/16 (diff) | Next »
Sergey Smolov, 04/18/2017 02:25 PM


Building

The tool building is based on the pyInstaller

Windows

  1. Install Python 2.* interpreter from here
  2. Install PyWin32 from here
  3. Get pip-Win Python package manager from here and run it.
  4. In the pip-Win Command field enter the following:
    venv -c -i  pyi-env-name
    

    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 shell window opens in which you can run commands within this environment. Enter the command:
    pip install PyInstaller
    
  5. Once pyInstaller is installed, start pip-Win, in the Command field enter the following:
    venv pyi-env-name
    

    then click Run.
  6. Go to the tool sources folder.
  7. Run the following command:
    pyinstaller traceutils\tarmac_trace_matcher.py.py -n traceutils --add-data="LICENSE;README" -p="traceutils;traceutils\record" -d
    
  8. Go to the dist subdirectory and zip the result.

Linux

  1. Get pip installation script from here
  2. Run the pip installation script as follows:
    sudo python get-pip.py
    
  3. Install pyInstaller as follows:
    sudo pip install pyinstaller
    
  4. Go to the tool source folder.
  5. Run the following command:
    sudo pyinstaller traceutils/tarmac_trace_matcher.py -n traceutils --add-data LICENSE:README -p traceutils/:traceutils/record/ -d
    
  6. Go to the dist subdirectiry and zip the result.

Updated by Sergey Smolov over 7 years ago · 16 revisions