• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/python3/python3-3.3-005-do-not-generate-pyo-files.patch
Maxime RipardMaxime Ripard committed 03c4d57f1d907 Nov 2012
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Do not generate .pyo files
2
​
3
By default, the Python installation byte-compiles all modules in two
4
forms: the normal bytecode (.pyc) and an optimized bytecode (.pyo).
5
​
6
According to
7
http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html,
8
the optimization do not do anything useful, and generating both the
9
"non-optimized" and "optimized" bytecode variants takes time.
10
​
11
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
---
13
 Makefile.pre.in |    9 ---------
14
 1 file changed, 9 deletions(-)
15
​
16
Index: Python-3.3.0/Makefile.pre.in
17
===================================================================
18
--- Python-3.3.0.orig/Makefile.pre.in
19
+++ Python-3.3.0/Makefile.pre.in
20
@@ -1082,20 +1082,11 @@
21
        -d $(LIBDEST) -f \
22
        -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
23
        $(DESTDIR)$(LIBDEST)
24
-   -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
25
-       $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
26
-       -d $(LIBDEST) -f \
27
-       -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
28
-       $(DESTDIR)$(LIBDEST)
29
    -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
30
        $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
31
        -d $(LIBDEST)/site-packages -f \
32
        -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
33
    -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
34
-       $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
35
-       -d $(LIBDEST)/site-packages -f \
36
-       -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
37
-   -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
38
        $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
39
    -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
40
        $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.