Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Upgrade Python version? #20

Open
amtlib-dot-dll opened this issue Mar 24, 2018 · 6 comments
Open

Upgrade Python version? #20

amtlib-dot-dll opened this issue Mar 24, 2018 · 6 comments

Comments

@amtlib-dot-dll
Copy link

The Python version in the runtime is still 3.5, while 3.7 is coming out

@alexlarsson
Copy link
Member

A runtime is ABI stable, We can’t just update major versions. However we should make sure the 1.8 freedesktop sdk has the latest version.

@amtlib-dot-dll
Copy link
Author

Thanks! When will it come out?

@alexlarsson
Copy link
Member

It’s under development here https://gitlab.com/freedesktop-sdk/freedesktop-sdk

@TingPing
Copy link
Member

TingPing commented Mar 24, 2018

If you want to bundle a minimal version:

    {
      "name": "python",
      "config-opts": [
        "--enable-shared",
        "--enable-optimizations",
        "--enable-ipv6",
        "--with-threads",
        "--with-lto",
        "--without-ensurepip",
        "--with-system-ffi",
        "--with-system-libmpdec",
        "--with-system-expat"
      ],
      "build-options": {
        "no-debuginfo": true
      },
      "cleanup": [
        "/bin/2to3*",
        "/bin/easy_install*",
        "/bin/idle*",
        "/bin/python*-config",
        "/bin/pyvenv*",
        "/bin/pydoc*",
        "/include",
        "/share",
        "/lib/pkgconfig",
        "/lib/python*/config-*",

        /* Test scripts */
        "/lib/python*/test",
        "/lib/python*/distutils/tests",
        "/lib/python*/ctypes/test",
        "/lib/python*/sqlite3/test",
        "/lib/python*/lib2to3/tests",
        "/lib/python*/tkinter/test",
        "/lib/python*/unittest/test",
        "/lib/python*/lib-dynload/_*_test.*.so",
        "/lib/python*/lib-dynload/_test*.*.so",

        /* Unused modules */
        "/lib/python*/idlelib",
        "/lib/python*/tkinter",
        "/lib/python*/turtle*",

        "*.pyc",
        "__pycache__",
        "*.exe"
      ],
      "sources": [
        {
          "type": "archive",
          "url": "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz",
          "sha256": "159b932bf56aeaa76fd66e7420522d8c8853d486b8567c459b84fe2ed13bcaba"
        }
      ]
    }

@amtlib-dot-dll
Copy link
Author

amtlib-dot-dll commented May 5, 2018

I am not familiar with the whole structure of this project, but the Python version of poky is still 3.5 https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3_3.5.5.bb although https://gitlab.com/freedesktop-sdk/freedesktop-sdk/blob/master/sdk/elements/base/python3.bst indicates a newer Python version


Is org.freedesktop.Sdk based on Yocto Project and Poky? 😂 @alexlarsson


It seems that at some point you migrated to BuildStream 😂 But according to the documentation of BuildStream it is inspired by Flatpak Builder? 😂 😂

@TingPing
Copy link
Member

TingPing commented May 5, 2018

1.8 is not based on Yocto, 1.6 is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants