Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] python3: Point /usr/bin/python to python3 if python is not selected
@ 2013-01-18 14:06 Maxime Ripard
  2013-01-18 14:06 ` [Buildroot] [PATCH 2/3] python3: Port python2 patches to reduce the interpreter size Maxime Ripard
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Maxime Ripard @ 2013-01-18 14:06 UTC (permalink / raw)
  To: buildroot

Fixes #5702

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 package/python3/python3.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index bcd83ea..0d54162 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -148,5 +148,12 @@ PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_REMOVE_USELESS_FILES
 
 PYTHON3_AUTORECONF = YES
 
+define PYTHON3_INSTALL_SYMLINK
+	ln -fs python3 $(TARGET_DIR)/usr/bin/python
+endef
+
+ifneq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_INSTALL_SYMLINK
+endif
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-01-23  8:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 14:06 [Buildroot] [PATCH 1/3] python3: Point /usr/bin/python to python3 if python is not selected Maxime Ripard
2013-01-18 14:06 ` [Buildroot] [PATCH 2/3] python3: Port python2 patches to reduce the interpreter size Maxime Ripard
2013-01-19 14:53   ` Samuel Martin
2013-01-19 16:36     ` Samuel Martin
2013-01-23  8:26       ` Maxime Ripard
2013-01-23  8:25     ` Maxime Ripard
2013-01-23  8:39       ` Samuel Martin
2013-01-19 17:05   ` Arnout Vandecappelle
2013-01-23  8:27     ` Maxime Ripard
2013-01-18 14:06 ` [Buildroot] [PATCH 3/3] python3: Handle properly the pyc and py files on the target Maxime Ripard
2013-01-19 14:52   ` Samuel Martin
2013-01-20 20:38   ` Peter Korsgaard
2013-01-19 14:52 ` [Buildroot] [PATCH 1/3] python3: Point /usr/bin/python to python3 if python is not selected Samuel Martin
2013-01-20 20:34 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox