mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 01:21:21 +00:00
python,python3: undo egg-info removal
This reverts commits4333d1dcbfand074d2863be, making Python packages discoverable again by pkg_resources. Fixes #5361. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -46,10 +46,6 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# delete egg-info directories
|
||||
[ "$PYTHON3_KEEP_EGGINFO" == "1" ] || \
|
||||
find "$dst_dir" -name "*.egg-info" | xargs rm -rf
|
||||
|
||||
if [ "$mode" == "sources" ] ; then
|
||||
# Copy only python source files
|
||||
find $dst_dir -not -type d -not -name "*\.py" | xargs rm -f
|
||||
|
||||
Reference in New Issue
Block a user