From patchwork Thu Dec 5 23:41:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 297467 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 240192C00A1 for ; Fri, 6 Dec 2013 10:42:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6EA818B94F; Thu, 5 Dec 2013 23:42:08 +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 doKmzzNFxFSA; Thu, 5 Dec 2013 23:42:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E36E08B8FD; Thu, 5 Dec 2013 23:42:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CAA751BF82B for ; Thu, 5 Dec 2013 23:42:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C1D5F8BF4F for ; Thu, 5 Dec 2013 23:42:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 461k9nU9+YBP for ; Thu, 5 Dec 2013 23:42:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id D7E468BEBD for ; Thu, 5 Dec 2013 23:42:03 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id k14so14695117wgh.8 for ; Thu, 05 Dec 2013 15:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=s75Ws4DpGAEPhvjEilfQxQCj9VRkgMWMkg/BB/uLTmU=; b=wlqWtQ+Pvpi7j4Ol8x/jrxBUAhRzAyk4zyvLB9Aw2O0/uKfIzONcEXiyfCxPnbJ186 5Z9hFTZa4VtM7jJPa/asABfJrWiPVJjb+HugTL7MLOxzgVui4d4hfqWJfPn+jv4zHLyB /qZQg79Gd1QBFAru6Dyg7m0y04lxGi1neu77ik+VVGjFeBZONks3FwCVFCZKkagnRpJZ Y9emTKtCQAPXBnwHDlecuCFucB1tdZUI4OtoZKjjQl+a+ZkurKThirR2yhl2b3edx73h gbIUK+SaDRbgYCXh+eKib1MguhKpcqILNTRIYMyuMBPbLjDonuNfPdkTJvL5/irLvGOe SRVQ== X-Received: by 10.180.189.6 with SMTP id ge6mr244112wic.1.1386286922422; Thu, 05 Dec 2013 15:42:02 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id qc10sm799972wic.9.2013.12.05.15.42.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Dec 2013 15:42:01 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Fri, 6 Dec 2013 00:41:57 +0100 Message-Id: <1386286917-5277-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH v2] manual: do not generate .pyc files 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 From: "Yann E. MORIN" Python saves a pre-compiled support/scripts/kconfiglib.pyc file side-to-side with the corresponding .py file. This does not work if the Buildroot source tree is read-only (but this is not an error for Python, which keep going OK). But this may cause issues for out-of-tree builds in case the same Buildroot source tree is shared by many builds. Also, 'make clean' currently does not clean this file, and out-of-tree builds can remove it either, at the risk of causing issues for other out-of-tree builds running at the same time. Just tell Python not to generate .pyc files: - call the script via python, don't use the sha-bang - thus, make the script non-executable, and remove the sha-bang Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle Cc: Samuel Martin --- Changes v1->v2: - fix typo in commit log (Samuel) --- docs/manual/manual.mk | 2 +- support/scripts/gen-manual-lists.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) mode change 100755 => 100644 support/scripts/gen-manual-lists.py diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk index 0926566..f0bbff8 100644 --- a/docs/manual/manual.mk +++ b/docs/manual/manual.mk @@ -1,7 +1,7 @@ manual-update-lists: manual-check-dependencies-lists $(Q)$(call MESSAGE,"Updating the manual lists...") $(Q)BR2_DEFCONFIG="" TOPDIR=$(TOPDIR) O=$(O)/docs/manual/.build \ - $(TOPDIR)/support/scripts/gen-manual-lists.py + python -B $(TOPDIR)/support/scripts/gen-manual-lists.py # we can't use suitable-host-package here because that's not available in # the context of 'make release' diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py old mode 100755 new mode 100644 index 4546e07..4562d7e --- a/support/scripts/gen-manual-lists.py +++ b/support/scripts/gen-manual-lists.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -## ## gen-manual-lists.py ## ## This script generates the following Buildroot manual appendices: