@@ -10,20 +10,34 @@ Initial setup (do this once):
10
10
the nrfutil script doesn't work with Python 3 and cx_freeze will use whichever
11
11
version of Python it's run with to build the exe (i.e. you need to run
12
12
cx_freeze with Python 2.7). Assuming you have homebrew installed:
13
+
13
14
- Update python 2 in homebrew to the latest version, and reinstall just to
14
15
fix odd issues like links to old dynamic libraries that might be missing,
15
16
etc. Run:
17
+
16
18
brew update
17
19
brew reinstall python
18
20
19
21
Or if you never had homebrew python2 installed run:
22
+
20
23
brew install python
21
24
22
25
Now just to make sure homebrew python is setup and linked as the 'active'
23
26
python run:
27
+
24
28
brew unlink python && brew link python
29
+
25
30
- At this point when you run python or pip you should be using homebrew
26
31
python. Do not continue until this is true.
32
+
33
+ - Make sure there is no other version of cx_freeze already installed. Run
34
+ these to wipe it out if so (it's ok if these fail with errors that cx_freeze
35
+ isn't installed):
36
+
37
+ pip uninstall cx_freeze
38
+ pip2 uninstall cx_freeze
39
+ pip3 uninstall cx_freeze
40
+
27
41
- Install cx_freeze for homebrew python 2:
28
42
29
43
pip2 install cx_freeze
@@ -32,12 +46,14 @@ Initial setup (do this once):
32
46
cxfreeze script and verify it shows usage info:
33
47
34
48
cxfreeze
49
+
35
50
- Install nrfutil dependencies. Be sure to install them into homebrew's python
36
51
2 as this is what cx_freeze will run from and use to find dependencies. Run
37
52
from this directory:
38
53
39
54
pip2 install -r requirements.txt
40
55
python setup.py install
56
+
41
57
- That's it, you should be setup with cx_freeze on homebrew python 2 and all
42
58
the nrfutil dependencies ready to go.
43
59
0 commit comments