From 6b340425e8af3f6f8e1489eb3550f35ee28b59b9 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Sun, 27 Jan 2013 15:38:56 +0000 Subject: python3: Fix pyc-only related runtime exceptions Python3 changes the pyc lookup strategy, ignoring the __pycache__ directory if the .py file is missing. Change install location to enable use of .pyc without their parent .py See http://www.python.org/dev/peps/pep-3147 [Peter: add patch header] Signed-off-by: Daniel Nelson Acked-by: Arnout Vandecappelle (Essensium/Mind) (untested) Signed-off-by: Peter Korsgaard --- package/python3/python3.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/python3/python3.mk') diff --git a/package/python3/python3.mk b/package/python3/python3.mk index e7c09837e..7551a7b5a 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -70,6 +70,10 @@ else PYTHON3_CONF_OPT += --with-expat=none endif +ifeq ($(BR2_PACKAGE_PYTHON3_PYC_ONLY),y) +PYTHON3_CONF_OPT += --enable-old-stdlib-cache +endif + ifeq ($(BR2_PACKAGE_PYTHON3_SQLITE),y) PYTHON3_DEPENDENCIES += sqlite endif -- cgit v1.2.3