From: Arnout Vandecappelle Date: Sat, 19 Nov 2016 13:38:55 +0100 Subject: [Buildroot] [PATCH v2 13/15] python2: remove full path from .pyc In-Reply-To: <1479460224-6119-14-git-send-email-jezz@sysmic.org> References: <1479460224-6119-1-git-send-email-jezz@sysmic.org> <1479460224-6119-14-git-send-email-jezz@sysmic.org> Message-ID: <7c958a3e-372a-5549-e815-57d12c66ee92@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 Reviewed-by: Arnout Vandecappelle (Essensium/Mind) 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