@@ -10,20 +10,34 @@ Initial setup (do this once):
1010 the nrfutil script doesn't work with Python 3 and cx_freeze will use whichever
1111 version of Python it's run with to build the exe (i.e. you need to run
1212 cx_freeze with Python 2.7). Assuming you have homebrew installed:
13+
1314 - Update python 2 in homebrew to the latest version, and reinstall just to
1415 fix odd issues like links to old dynamic libraries that might be missing,
1516 etc. Run:
17+
1618 brew update
1719 brew reinstall python
1820
1921 Or if you never had homebrew python2 installed run:
22+
2023 brew install python
2124
2225 Now just to make sure homebrew python is setup and linked as the 'active'
2326 python run:
27+
2428 brew unlink python && brew link python
29+
2530 - At this point when you run python or pip you should be using homebrew
2631 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+
2741 - Install cx_freeze for homebrew python 2:
2842
2943 pip2 install cx_freeze
@@ -32,12 +46,14 @@ Initial setup (do this once):
3246 cxfreeze script and verify it shows usage info:
3347
3448 cxfreeze
49+
3550- Install nrfutil dependencies. Be sure to install them into homebrew's python
3651 2 as this is what cx_freeze will run from and use to find dependencies. Run
3752 from this directory:
3853
3954 pip2 install -r requirements.txt
4055 python setup.py install
56+
4157- That's it, you should be setup with cx_freeze on homebrew python 2 and all
4258 the nrfutil dependencies ready to go.
4359
0 commit comments