Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jan 4, 2024
1 parent d6dda6a commit b62fe5a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CODEXCTL := https://github.com/Jayy001/codexctl/releases/download/1703028363/ubu
CODEXCTL_HASH := 5c3aa5f264f4ae95de6e259eb8d5da8f0d9c2d7eb3710adb0cf53bcb72dcb79a
FW_VERSION := 2.15.1.1189
FW_DATA := wVbHkgKisg-
ARCH := $(shell uname -m)

PROTO_SOURCE := $(shell find protobuf -type f -name '*.proto')
PROTO_OBJ := $(addprefix $(PACKAGE)/proto/,$(PROTO_SOURCE:%.proto=%_pb2.py))
Expand Down Expand Up @@ -85,14 +84,8 @@ dist/${PACKAGE}-${VERSION}-${ABI}-${ABI}-${PLATFORM}.whl: dist $(OBJ)


dist/rmufuse: dist .venv/bin/activate $(OBJ)
ifeq ($(ARCH), armv7l)
. .venv/bin/activate; \
python -m pip install --extra-index-url=https://wheels.eeems.codes/ wheel nuitka
else
. .venv/bin/activate; \
python -m pip install wheel nuitka
endif
. .venv/bin/activate; \
python -m pip install --extra-index-url=https://wheels.eeems.codes/ wheel nuitka; \
NUITKA_CACHE_DIR="$(realpath .)/.nuitka" \
nuitka3 \
--enable-plugin=pylint-warnings \
Expand All @@ -110,13 +103,9 @@ endif
.venv/bin/activate: requirements.txt
@echo "Setting up development virtual env in .venv"
python -m venv .venv
ifeq ($(ARCH), armv7l)
. .venv/bin/activate; \
python -m pip install --extra-index-url=https://wheels.eeems.codes/ -r requirements.txt
else
. .venv/bin/activate; \
python -m pip install $$extra_flags -r requirements.txt
endif


.venv/codexctl.zip: .venv/bin/activate
curl -L "${CODEXCTL}" -o .venv/codexctl.zip
Expand Down

0 comments on commit b62fe5a

Please sign in to comment.