Message ID | 1482241596-31688-11-git-send-email-jezz@sysmic.org |
---|---|
State | Accepted |
Headers | show |
Hi Jérôme, all, On Tue, Dec 20, 2016 at 2:46 PM, Jérôme Pouiller <jezz@sysmic.org> wrote: > .pyc files include path to source .py file. This patch changes the way > `pycompile.py' is launched in order to only keep the part relative to > $TARGET_DIR. > > This work was sponsored by `BA Robotic Systems'. > > Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> > Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Samuel Martin <s.martin49@gmail.com> > --- > > Notes: > v3: > - Typo in commit log (Arnout) > > package/python3/python3.mk | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/package/python3/python3.mk b/package/python3/python3.mk > index 1817b22..2562be7 100644 > --- a/package/python3/python3.mk > +++ b/package/python3/python3.mk > @@ -237,9 +237,10 @@ endif > > define PYTHON3_CREATE_PYC_FILES > PYTHONPATH="$(PYTHON3_PATH)" \ > - $(HOST_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR) \ > - support/scripts/pycompile.py $(if $(BR2_REPRODUCIBLE),--force) \ > - $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) > + cd $(TARGET_DIR) && $(HOST_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR) \ > + $(TOPDIR)/support/scripts/pycompile.py \ > + $(if $(BR2_REPRODUCIBLE),--force) \ > + usr/lib/python$(PYTHON3_VERSION_MAJOR) > endef > > ifeq ($(BR2_PACKAGE_PYTHON3_PYC_ONLY)$(BR2_PACKAGE_PYTHON3_PY_PYC),y) > -- > 1.9.1 > > _______________________________________________ > buildroot mailing list > buildroot@busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot Regards,
Hello, On Tue, 20 Dec 2016 14:46:27 +0100, Jérôme Pouiller wrote: > .pyc files include path to source .py file. This patch changes the way > `pycompile.py' is launched in order to only keep the part relative to > $TARGET_DIR. > > This work was sponsored by `BA Robotic Systems'. > > Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> > Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> > --- Applied to master, thanks. Thomas
diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 1817b22..2562be7 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -237,9 +237,10 @@ endif define PYTHON3_CREATE_PYC_FILES PYTHONPATH="$(PYTHON3_PATH)" \ - $(HOST_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR) \ - support/scripts/pycompile.py $(if $(BR2_REPRODUCIBLE),--force) \ - $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) + cd $(TARGET_DIR) && $(HOST_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR) \ + $(TOPDIR)/support/scripts/pycompile.py \ + $(if $(BR2_REPRODUCIBLE),--force) \ + usr/lib/python$(PYTHON3_VERSION_MAJOR) endef ifeq ($(BR2_PACKAGE_PYTHON3_PYC_ONLY)$(BR2_PACKAGE_PYTHON3_PY_PYC),y)