printrun-src/buildinstructions.txt

changeset 45
c82943fb205f
equal deleted inserted replaced
44:310be640a303 45:c82943fb205f
1 setup on osx:
2 (install python 3.6)
3 (install python extension compile environment, this is automagically done if you have xcode)
4 (install git)
5 git clone http://github.com/kliment/Printrun.git
6 cd Printrun
7 git pull
8 python3 -m venv v3
9 . ./v3/bin/activate
10 pip install --upgrade pip
11 pip install --upgrade setuptools
12 pip install cffi
13 pip install -r requirements.txt
14 pip install cython
15 python setup.py build_ext --inplace
16
17 for running:
18 python pronterface.py
19
20 for packaging:
21 pip install pyinstaller
22 pyi-makespec -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py
23 rm -rf dist
24 pyinstaller --clean pronterface.spec -y
25 (edit .plist file to add:
26 <key>NSAppSleepDisabled</key>
27 <true/>
28 )
29 (optional) codesign -s identityname dist/pronterface.app --deep
30
31 setup on windows:
32 (install python 3.6)
33 (install python extension compile environment, see https://wiki.python.org/moin/WindowsCompilers )
34 (install git)
35 git clone http://github.com/kliment/Printrun.git
36 cd Printrun
37 git pull
38 \path\to\python3\python -m venv v3
39 v3\Scripts\activate
40 pip install --upgrade pip
41 pip install --upgrade setuptools
42 pip install cffi
43 pip install -r requirements.txt
44 pip install cython
45 python setup.py build_ext --inplace
46
47 for running:
48 python pronterface.py
49
50 for packaging:
51 pip install pyinstaller
52 pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
53 pyinstaller --clean pronterface.spec -y
54

mercurial