Skip to content

Commit

Permalink
Fix for Jetson Orin Jammy(22.04) python local path (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
lida2003 authored and svpcom committed Apr 20, 2024
1 parent 5b51172 commit 8b73387
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8b73387

Please sign in to comment.