printrun-src/buildinstructions.txt

Wed, 20 Jan 2021 10:17:01 +0100

author
mdd
date
Wed, 20 Jan 2021 10:17:01 +0100
changeset 47
dcc64b767b64
parent 45
c82943fb205f
permissions
-rw-r--r--

updated pronterface.py losing my own changes

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

mercurial