Building » History » Version 1
Sergey Smolov, 04/17/2017 02:37 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 | # 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 | |||
20 | # Once pyInstaller is installed, start pip-Win, in the Command field enter the following: |
||
21 | <pre> |
||
22 | venv pyi-env-name |
||
23 | </pre> |
||
24 | then click Run. |
||
25 | |||
26 | # Go the the tool sources folder. |
||
27 | # Run the following command: |
||
28 | <pre> |
||
29 | pyinstaller setup.py -n traceutils --add-data="LICENSE;README" -p="traceutils;traceutils\record" -d |
||
30 | </pre> |
||
31 | |||
32 | # Go the the _dist_ subdirectory and zip the result. |