diff options
authorYann E. MORIN <>2013-12-05 23:41:57 (GMT)
committer Peter Korsgaard <>2013-12-06 14:23:26 (GMT)
commitf678e3108695fccb96c363987ff53e0cd5b16be2 (patch)
parent72962843a80849e5d159181fcf5ebbfae4de2916 (diff)
manual: do not generate .pyc files
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 <> Signed-off-by: Peter Korsgaard <>
2 files changed, 1 insertions, 3 deletions
diff --git a/docs/manual/ b/docs/manual/
index 0926566..f0bbff8 100644
--- a/docs/manual/
+++ b/docs/manual/
@@ -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/
+ python -B $(TOPDIR)/support/scripts/
# we can't use suitable-host-package here because that's not available in
# the context of 'make release'
diff --git a/support/scripts/ b/support/scripts/
index 4546e07..4562d7e 100755..100644
--- a/support/scripts/
+++ b/support/scripts/
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
## This script generates the following Buildroot manual appendices: