Project

General

Profile

Actions

Feature #6443

open

Make CHIRP on Macintosh self contained

Added by Barry Nelson about 5 years ago. Updated almost 4 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/11/2019
Due date:
% Done:

90%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
I read the instructions above:

Description

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}")

PYTHON="${LOCATION}/../CHIRP"
export PYTHONPATH="/Library/Python/2.7/site-packages:$LOCATION/../Resources/site-packages:."
export DYLD_FALLBACK_LIBRARY_PATH="$LOCATION/../Resources/lib"

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

Actions

Also available in: Atom PDF