packages/lang/python3/files
Jo-Philipp Wich 4a083de4a9 python3: avoid use of HOST_BUILD_PREFIX
Currently, the python3-package.mk framework relies on HOST_BUILD_PREFIX to
refer to the $(STAGING_DIR)/host directory but using the HOST_BUILD_PREFIX
variable requires the use of include/host-build.mk which in turn includes
python3-package.mk, leading to target redefinition errors.

In order to provide a global, uniform way to refer to the host staging
directory, LEDE introduced a new variable STAGING_DIR_HOSTPKG which points
to $(STAGING_DIR)/host for now with the purpose of eventually being able to
relocate that directory in the future.

This commit changes python3-package.mk to ...
 - stop including include/host-build.mk (revert of #3423)
 - replace usages of $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
 - warn and fallback to $(STAGING_DIR)/host if STAGING_DIR_HOSTPKG is
   unavailable

The fallback code will ensure that the python host build infrastructure
continues to work properly on older OpenWrt and LEDE versions until the
STAGING_DIR_HOSTPKG is fully settled in and can be removed some time
in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-11-01 12:57:41 +01:00
..
config.site python: add ac_cv_buggy_getaddrinfo=no to config.site file 2014-10-20 18:09:57 +03:00
python3-package-asyncio.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-codecs.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-ctypes.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-dbm.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-decimal.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-dev.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-distutils.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-email.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-gdbm.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-lib2to3.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-logging.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-lzma.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-multiprocessing.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-ncurses.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-openssl.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-pydoc.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-sqlite3.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-unittest.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package-xml.mk python3: upgrade to version 3.5.1 2016-04-14 11:41:48 +03:00
python3-package.mk python3: avoid use of HOST_BUILD_PREFIX 2016-11-01 12:57:41 +01:00