[Buildroot] [PATCH v2 13/15] python2: remove full path from .pyc
Arnout Vandecappelle
arnout at mind.be
Sat Nov 19 12:38:55 UTC 2016
On 18-11-16 10:10, Jérôme Pouiller wrote:
> .pyc files include path to source .py file. This patch change the way
s
> `pycompile.py' is launched in order to only keep part relative to $TARGET_DIR.
^the
>
> This work was sponsored by `BA Robotic Systems'.
>
> Signed-off-by: Jérôme Pouiller <jezz at sysmic.org>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Regards,
Arnout
> ---
> package/python/python.mk | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/package/python/python.mk b/package/python/python.mk
> index b0ff1fd..35f971e 100644
> --- a/package/python/python.mk
> +++ b/package/python/python.mk
> @@ -248,9 +248,9 @@ endif
>
> define PYTHON_CREATE_PYC_FILES
> PYTHONPATH="$(PYTHON_PATH)" \
> - $(HOST_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR) \
> - support/scripts/pycompile.py \
> - $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)
> + cd $(TARGET_DIR) && $(HOST_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR) \
> + $(TOPDIR)/support/scripts/pycompile.py \
> + usr/lib/python$(PYTHON_VERSION_MAJOR)
> endef
>
> ifeq ($(BR2_PACKAGE_PYTHON_PYC_ONLY)$(BR2_PACKAGE_PYTHON_PY_PYC),y)
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list