kumquat-buildroot/package/scons/scons.mk
Thomas Petazzoni 726209fc79 package/scons: bring back Python interpreter call in SCONS variable
Back in commit
f72be49830 ("package/scons: remove
python from SCONS"), we changed the SCONS variable to not explicitly
invoke the Python interpreter, because some scons-based packages used
python2, some python3.

Now that the 3 remaining packages using scons (gpsd, mongodb and
benejson) all use python3, we can bring back the python3 interpreter
call into the SCONS variable, and slightly simplify those packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-01-08 12:04:14 +01:00

22 lines
626 B
Makefile

################################################################################
#
# scons
#
################################################################################
SCONS_VERSION = 3.1.2
SCONS_SITE = http://downloads.sourceforge.net/project/scons/scons/$(SCONS_VERSION)
SCONS_LICENSE = MIT
SCONS_LICENSE_FILES = LICENSE.txt
SCONS_SETUP_TYPE = distutils
HOST_SCONS_NEEDS_HOST_PYTHON = python3
HOST_SCONS_INSTALL_OPTS = \
--install-lib=$(HOST_DIR)/lib/scons-$(SCONS_VERSION)
$(eval $(host-python-package))
# variables used by other packages
SCONS = $(HOST_DIR)/bin/python3 $(HOST_DIR)/bin/scons $(if $(QUIET),-s)