From 8b73387b1b2bf3b57661c5c5b06c80428742b2a3 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sat, 20 Apr 2024 18:16:05 +0800 Subject: [PATCH] Fix for Jetson Orin Jammy(22.04) python local path (#335) --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9c64f592..eca7833b 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ all: all_bin gs.key test $(ENV): virtualenv --python=$(PYTHON) $(ENV) - $(ENV)/bin/pip install --upgrade pip setuptools stdeb + [ -f $(ENV)/local/bin/pip ] && $(ENV)/local/bin/pip install --upgrade pip setuptools stdeb \ + || $(ENV)/bin/pip install --upgrade pip setuptools stdeb all_bin: wfb_rx wfb_tx wfb_keygen @@ -47,7 +48,8 @@ rpm: all_bin $(ENV) deb: all_bin $(ENV) rm -rf deb_dist - $(ENV)/bin/python ./setup.py --command-packages=stdeb.command bdist_deb + [ -f $(ENV)/local/bin/python ] && $(ENV)/local/bin/python ./setup.py --command-packages=stdeb.command bdist_deb \ + || $(ENV)/bin/python ./setup.py --command-packages=stdeb.command bdist_deb rm -rf wfb_ng.egg-info/ wfb-ng-$(VERSION).tar.gz bdist: all_bin