Feature #6443

Make CHIRP on Macintosh self contained

Added by Barry Nelson 5 days ago. Updated 5 days ago.

Status:New Start date:02/11/2019
Priority:Normal Due date:
Assignee:Dan Smith % Done:


Target version:chirp-daily
Chirp Version:daily Model affected:(All models)


I have already been able to accomplish this by using the loading script below and copying all the dylib files to CHIRP.app/Contents/Resources/lib, copying all the Python packages to CHIRP.app/Contents/Resources/site-packages and copying a Python interpreter to CHIRP.app/Contents/CHIRP. This makes it so CHIRP no longer requires the KK7DS Python runtime.

Example at: https://drive.google.com/file/d/1zlN5RBJxgZ4fGoH6OzGuKr7krX_1RGu1/view?usp=sharing

#!/usr/bin/env bash

LOCATION=$(dirname "${BASH_SOURCE}")

export PYTHONPATH="/Library/Python/2.7/site-packages:$LOCATION/../Resources/site-packages:."

exec "$PYTHON" "${LOCATION}/../Resources/chirp/chirpw"


Updated by Barry Nelson 5 days ago

Note: I used dylib files and site-packages from brew. I tested it on another Mac running OS-X 10.14 where brew is not installed. My build machine was running 10.13. Both machines were 64 bit, my build will only work on a 64 bit OS, however, it should be possible to support 32 bit Macintoshes as this way well, if you want to go to the trouble. You could probably also leverage /usr/bin/python instead of building the interpreter binary, as python 2.7 does ship with OS-X.


Also available in: Atom PDF