Skip to content

Add python 3 support

Khem Raj openembedded-core 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest13 patches 2 repliesIn review
  2. v420 patches 6 repliesSuperseded
  3. v124 patches 38 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13generate-manifest-3.3.py: Add script to generate python 3.3 manifestsscripts/contrib/python/generate-manifest-3.3.py+376 -00 replies
2/13python-3.3-manifest: Add python3 manifest filemeta/recipes-devtools/python/python-3.3-manifest.inc+260 -00 replies
3/13python3native.bbclass: Add python3 abstraction classmeta/classes/python3native.bbclass+7 -00 replies
4/13package_rpm.bbclass: Trigger the regexp on exact keyword matchmeta/classes/package_rpm.bbclass+1 -10 replies
5/13classes/distutils: Introduce PYTHON_PNmeta/classes/distutils-base.bbclass meta/classes/distutils-native-base.bbclass meta/classes/distutils.bbclass +2 more+23 -190 replies
6/13classes: Add distutils for python3meta/classes/distutils-tools.bbclass meta/classes/distutils3-base.bbclass meta/classes/distutils3-native-base.bbclass +3 more+184 -20 replies
7/13distutils: Introduce PYTHON_ABI variablemeta/classes/distutils3-base.bbclass meta/classes/distutils3-native-base.bbclass meta/classes/python-dir.bbclass+5 -00 replies
8/13distutils3: Do build_ext as separate step during compilemeta/classes/distutils3.bbclass+14 -220 replies
9/13python3: Add target and native recipesmeta/recipes-devtools/python/python3-native_3.3.2.bb meta/recipes-devtools/python/python3/000-cross-compile.patch meta/recipes-devtools/python/python3/0001-h2py-Fix-issue-13032-where-it-fails-with-UnicodeDeco.patch +24 more+1601 -00 replies
10/13python_2.7.3.bb: Inherit python-dirmeta/recipes-devtools/python/python_2.7.3.bb+1 -10 replies
11/13python-distribute: Add recipes for python2 and python3meta/recipes-devtools/python/python-distribute_0.6.32.bb meta/recipes-devtools/python/python3-distribute_0.6.32.bb+94 -00 replies
12/13distutils3.bbclass: Fix typo and use proper values for target sysrootmeta/classes/distutils3.bbclass+5 -60 replies
13/13distutils3.bbclass: Use MACHINE for sysroot when not building for build hostmeta/classes/distutils3.bbclass+29 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH V5 00/13] Add python 3 support

in V5

squash all python and python-native recipe changes into original commit as highlighted in feedback from Ross

The following changes since commit 22c0668d9e0a22c095d78bab7b45ef4f803dd0d1:

scripts/runqemu: Fix MACHINE regex (2013-09-04 14:17:23 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/python3
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/python3

Khem Raj (13):
generate-manifest-3.3.py: Add script to generate python 3.3 manifests python-3.3-manifest: Add python3 manifest file python3native.bbclass: Add python3 abstraction class package_rpm.bbclass: Trigger the regexp on exact keyword match classes/distutils: Introduce PYTHON_PN
classes: Add distutils for python3
distutils: Introduce PYTHON_ABI variable
distutils3: Do build_ext as separate step during compile
python3: Add target and native recipes
python_2.7.3.bb: Inherit python-dir
python-distribute: Add recipes for python2 and python3 distutils3.bbclass: Fix typo and use proper values for target sysroot distutils3.bbclass: Use MACHINE for sysroot when not building for
build host

 meta/classes/distutils-base.bbclass                |   5 +-
 meta/classes/distutils-native-base.bbclass         |   4 +-
 meta/classes/distutils-tools.bbclass               |  77 +++++
 meta/classes/distutils.bbclass                     |  23 +-
 meta/classes/distutils3-base.bbclass               |   8 +
 meta/classes/distutils3-native-base.bbclass        |   4 +
 meta/classes/distutils3.bbclass                    |  98 ++++++
 meta/classes/package_rpm.bbclass                   |   2 +-
 meta/classes/python-dir.bbclass                    |   2 +
 meta/classes/python3native.bbclass                 |   7 +
 meta/classes/pythonnative.bbclass                  |   9 +-
 meta/classes/setuptools.bbclass                    |   3 +-
 meta/classes/setuptools3.bbclass                   |   8 +
 .../python/python-3.3-manifest.inc                 | 260 ++++++++++++++
 .../python/python-distribute_0.6.32.bb             |  47 +++
 .../python/python3-distribute_0.6.32.bb            |  47 +++
 .../python/python3-native_3.3.2.bb                 |  70 ++++
 .../python/python3/000-cross-compile.patch         |  83 +++++
 ...sue-13032-where-it-fails-with-UnicodeDeco.patch |  37 ++
 .../python3/020-dont-compile-python-files.patch    |  37 ++
 .../python/python3/03-fix-tkinter-detection.patch  |  42 +++
 .../python/python3/030-fixup-include-dirs.patch    |  33 ++
 .../python/python3/04-default-is-optimized.patch   |  58 ++++
 .../python3/06-ctypes-libffi-fix-configure.patch   |  44 +++
 .../python3/070-dont-clean-ipkg-install.patch      |  36 ++
 .../python3/080-distutils-dont_adjust_files.patch  |  92 +++++
 .../python/python3/110-enable-zlib.patch           |  21 ++
 ...2-distutils-prefix-is-inside-staging-area.patch |  78 +++++
 .../python/python3/130-readline-setup.patch        |  55 +++
 .../python/python3/150-fix-setupterm.patch         |  17 +
 .../python3/avoid_warning_about_tkinter.patch      |  25 ++
 meta/recipes-devtools/python/python3/cgi_py.patch  |  23 ++
 .../python3/fix_for_using_different_libdir.patch   |  54 +++
 .../python3/host_include_contamination.patch       |  28 ++
 .../python/python3/python-3.3-multilib.patch       | 336 ++++++++++++++++++
 .../python/python3/remove_sqlite_rpath.patch       |  19 ++
 .../python/python3/setuptweaks.patch               |  57 ++++
 .../python/python3/shutil-follow-symlink-fix.patch |  17 +
 .../python/python3/sitecustomize.py                |  37 ++
 .../sys_platform_is_now_always_linux2.patch        |  29 ++
 .../python/python3/sysroot-include-headers.patch   |  35 ++
 .../python/python3/unixccompiler.patch             |  33 ++
 meta/recipes-devtools/python/python3_3.3.2.bb      | 205 +++++++++++
 meta/recipes-devtools/python/python_2.7.3.bb       |   2 +-
 scripts/contrib/python/generate-manifest-3.3.py    | 376 +++++++++++++++++++++
 45 files changed, 2560 insertions(+), 23 deletions(-)
 create mode 100644 meta/classes/distutils-tools.bbclass
 create mode 100644 meta/classes/distutils3-base.bbclass
 create mode 100644 meta/classes/distutils3-native-base.bbclass
 create mode 100644 meta/classes/distutils3.bbclass
 create mode 100644 meta/classes/python3native.bbclass
 create mode 100644 meta/classes/setuptools3.bbclass
 create mode 100644 meta/recipes-devtools/python/python-3.3-manifest.inc
 create mode 100644 meta/recipes-devtools/python/python-distribute_0.6.32.bb
 create mode 100644 meta/recipes-devtools/python/python3-distribute_0.6.32.bb
 create mode 100644 meta/recipes-devtools/python/python3-native_3.3.2.bb
 create mode 100644 meta/recipes-devtools/python/python3/000-cross-compile.patch
 create mode 100644 meta/recipes-devtools/python/python3/0001-h2py-Fix-issue-13032-where-it-fails-with-UnicodeDeco.patch
 create mode 100644 meta/recipes-devtools/python/python3/020-dont-compile-python-files.patch
 create mode 100644 meta/recipes-devtools/python/python3/03-fix-tkinter-detection.patch
 create mode 100644 meta/recipes-devtools/python/python3/030-fixup-include-dirs.patch
 create mode 100644 meta/recipes-devtools/python/python3/04-default-is-optimized.patch
 create mode 100644 meta/recipes-devtools/python/python3/06-ctypes-libffi-fix-configure.patch
 create mode 100644 meta/recipes-devtools/python/python3/070-dont-clean-ipkg-install.patch
 create mode 100644 meta/recipes-devtools/python/python3/080-distutils-dont_adjust_files.patch
 create mode 100644 meta/recipes-devtools/python/python3/110-enable-zlib.patch
 create mode 100644 meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch
 create mode 100644 meta/recipes-devtools/python/python3/130-readline-setup.patch
 create mode 100644 meta/recipes-devtools/python/python3/150-fix-setupterm.patch
 create mode 100644 meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch
 create mode 100644 meta/recipes-devtools/python/python3/cgi_py.patch
 create mode 100644 meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch
 create mode 100644 meta/recipes-devtools/python/python3/host_include_contamination.patch
 create mode 100644 meta/recipes-devtools/python/python3/python-3.3-multilib.patch
 create mode 100644 meta/recipes-devtools/python/python3/remove_sqlite_rpath.patch
 create mode 100644 meta/recipes-devtools/python/python3/setuptweaks.patch
 create mode 100644 meta/recipes-devtools/python/python3/shutil-follow-symlink-fix.patch
 create mode 100644 meta/recipes-devtools/python/python3/sitecustomize.py
 create mode 100644 meta/recipes-devtools/python/python3/sys_platform_is_now_always_linux2.patch
 create mode 100644 meta/recipes-devtools/python/python3/sysroot-include-headers.patch
 create mode 100644 meta/recipes-devtools/python/python3/unixccompiler.patch
 create mode 100644 meta/recipes-devtools/python/python3_3.3.2.bb
 create mode 100755 scripts/contrib/python/generate-manifest-3.3.py
Signature · 1 line
1.8.4