eclipse-leda / leda-distro

Eclipse Leda provides a Yocto-based build setup for SDV.EDGE components
https://eclipse-leda.github.io/leda/
Apache License 2.0
14 stars 8 forks source link

Include a larger subset of the python 3.10 standard library in sdv-image-full #69

Closed vasilvas99 closed 1 year ago

vasilvas99 commented 1 year ago

Is your feature request related to a problem? Please describe. By default sdv-image-all installs the basic poky python package, which includes a very minimal subset of the python standard library. While nice for the final image size, this limits what scripts running natively (outside of containers with full python installations) on the image can do (e.g. random, pydoc, socket are missing).

Describe the solution you'd like According to How to work with Python applications and modules in Yocto Project the full python standard library can be installed by installing the python3-modules package. It however, depends on GPL3.0-licensed packages which is incompatible with the Leda-distro license (Apache-2.0).

Describe alternatives you've considered

Additional context None

mikehaller commented 1 year ago

An alternative solution may be to prepare a container with a full python installation and run it on demand.

By extending sdv-ctr-exec so that it would also pull and create the containers, similar to "docker run"

I assume there are already docker containers with python for various use cases.

Also agreeing to the idea of having at least the basic set of std libs natively installed would make it simpler to use during hackathons and ad-hoc experiments.

d-s-e commented 1 year ago

I would expect to have the python standard library available, if there is python on a system, especially if it is intended to be used for hacking and experimenting. The only GPLv3-licensed blocker for having the full stdlib installed, is gdbm, which is easy to remove.

d-s-e commented 1 year ago

fixed with https://github.com/eclipse-leda/meta-leda/commit/c24e93599670914063ced42879b0d8f1743f9442