From patchwork Sat Aug 11 05:43:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Liu X-Patchwork-Id: 176661 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 37B2E2C00DA for ; Sat, 11 Aug 2012 15:43:02 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2548D10BB9E; Sat, 11 Aug 2012 05:43:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XVNQtJawNQIF; Sat, 11 Aug 2012 05:42:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B158D10BB90; Sat, 11 Aug 2012 05:42:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F0E6F8F753 for ; Sat, 11 Aug 2012 05:42:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EA3BE2574A for ; Sat, 11 Aug 2012 05:42:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E0PmGWeIn2qh for ; Sat, 11 Aug 2012 05:42:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by silver.osuosl.org (Postfix) with ESMTPS id 7851525635 for ; Sat, 11 Aug 2012 05:42:56 +0000 (UTC) Received: by pbbrr13 with SMTP id rr13so3965001pbb.33 for ; Fri, 10 Aug 2012 22:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=cv50FoJBKOzvBAa1lhOqPx2peiAEjpjqTLJLbukZMBk=; b=lVqFAFomNXY4HogBlRh2XNXoSNbkN3b0Z1/SpV0HVkJ5kM02V/GGHSJxpklR8PY2ug Ktw3C1+aDhbx9HFuJkSczytp/7EG+9AU96IZ1LCSEs001h6MDaXYB2TjalEkA25LpuGq 7Ue/hKpCP+njPSfFXx01OeD6tdK2P/ulFZlJyk28sop8O/IHcsgwKBMKeaG24G0lX37q CHvay/eD1XKY67ebpAuSgTW7UlrypjGwCQ8BqYVhjySQcUwxmkRhfoHcEcwMPWQ0CliW PA36M7OCG0Od6CCKbRHQM0/oROkVkQCTYhyRl81/Zuv1MogkKL3FNS2DGEL/FFJPNUSw w95g== Received: by 10.66.77.7 with SMTP id o7mr11210812paw.37.1344663776164; Fri, 10 Aug 2012 22:42:56 -0700 (PDT) Received: from net147.co.cc (60-242-179-244.static.tpgi.com.au. [60.242.179.244]) by mx.google.com with ESMTPS id qn3sm747649pbc.6.2012.08.10.22.42.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 22:42:54 -0700 (PDT) From: Jonathan Liu To: buildroot@uclibc.org Date: Sat, 11 Aug 2012 15:43:15 +1000 Message-Id: <1344663795-26449-1-git-send-email-net147@gmail.com> X-Mailer: git-send-email 1.7.11.3 Subject: [Buildroot] [PATCH] python: fix interpreter directive for python scripts X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Jonathan Liu --- 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))