Skip to content

Commit

Permalink
python.mk: Allow ADDITIONAL_CROSSENV_WHEELS for extra crossenv dep
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Apr 2, 2024
1 parent c844763 commit 5c16182
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mk/spksrc.python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ PYTHON_DEPENDS := $(foreach cross,$(foreach pkg_name,$(shell $(MAKE) dependency-

# call-up pre-depend to prepare the shared python build environment
PRE_DEPEND_TARGET = python_pre_depend
ifneq ($(strip $(ADDITIONAL_CROSSENV_WHEELS)),)
POST_DEPEND_TARGET = python_post_depend
endif

else
ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(OLD_PPC_ARCHS)),$(ARCH))
Expand Down Expand Up @@ -86,3 +89,9 @@ python_pre_depend:
rm -fr work-*/$${pkgname}* work-*/.$${pkgname}-* ; \
fi ; \
done

.PHONY: python_post_depend
python_post_depend:
@. $(WORK_DIR)/crossenv/bin/activate ; \
$(RUN) build-pip --disable-pip-version-check install $(ADDITIONAL_CROSSENV_WHEELS) ; \
$(RUN) pip --disable-pip-version-check install $(ADDITIONAL_CROSSENV_WHEELS)

0 comments on commit 5c16182

Please sign in to comment.