Bug 11890 - Allow installation of pure Python (native) modules without building python3-native
Summary: Allow installation of pure Python (native) modules without building python3-n...
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-03 13:43 UTC by Ross Burton
Modified: 2026-07-30 15:28 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2017-08-03 13:43:03 UTC
It would be a lot faster if pure python (ie no C) modules could just be installed into the sysroot without having to build python3-native.

If we export PYTHONPATH=$SYSROOT/$libdir/python3/site-packages/ then Python will look in the right place.

The hard bit will be changing distutils3-base so that it doesn't unconditionally inherit python3native.
Comment 1 Ross Burton 2018-04-17 05:31:43 UTC
Clarification: this is for native packages only.  For target we want to depend on python3native so we can build pyc with the right version of Python.
Comment 2 Randy MacLeod 2022-02-03 16:25:24 UTC
Nice idea, there is some complexity be worked through.
Comment 3 Randy MacLeod 2023-10-24 14:24:56 UTC
Bulk move from 4.99 or 0.00 to 5.99