From: Jonathan Liu <net147@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] python: fix interpreter directive for python scripts
Date: Sat, 11 Aug 2012 15:43:15 +1000 [thread overview]
Message-ID: <1344663795-26449-1-git-send-email-net147@gmail.com> (raw)
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
package/python/python.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/python/python.mk b/package/python/python.mk
index fae4e5c..783b7b8 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -165,6 +165,13 @@ endef
PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_USELESS_FILES
+# Fix Python interpreter directive
+define PYTHON_FIX_INTERPRETER
+ sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{easy_install,easy_install-2.7,idle,smtpd.py}
+endef
+
+PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_FIX_INTERPRETER
+
PYTHON_AUTORECONF = YES
$(eval $(autotools-package))
--
1.7.11.3
next reply other threads:[~2012-08-11 5:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-11 5:43 Jonathan Liu [this message]
2012-08-22 7:17 ` [Buildroot] [PATCH] python: fix interpreter directive for python scripts Maxime Ripard
-- strict thread matches above, loose matches on Subject: below --
2012-08-11 6:10 Jonathan Liu
2012-08-11 21:05 ` Thomas Petazzoni
2012-08-12 6:57 ` Jonathan Liu
2012-08-12 12:04 ` Jonathan Liu
2012-08-12 13:19 ` Avishay Orpaz
2012-08-12 14:50 ` Yann E. MORIN
2012-08-12 15:27 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344663795-26449-1-git-send-email-net147@gmail.com \
--to=net147@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox