mirror of
https://github.com/novatiq/packages.git
synced 2026-04-28 06:44:40 +01:00
Merge pull request #4558 from commodo/python-cleanup1
python,python3: rename PyBuild/Compile rules & remove .egg-info from packages
This commit is contained in:
@@ -45,6 +45,9 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# delete egg-info directories
|
||||
find "$dst_dir" -name "*.egg-info" | xargs rm -rf
|
||||
|
||||
if [ "$mode" == "sources" ] ; then
|
||||
# Copy only python source files
|
||||
find $dst_dir -not -name "*\.py" | xargs rm -f
|
||||
|
||||
@@ -132,8 +132,10 @@ define PyBuild/Compile/Default
|
||||
)
|
||||
endef
|
||||
|
||||
PyBuild/Compile=$(PyBuild/Compile/Default)
|
||||
|
||||
ifeq ($(BUILD_VARIANT),python)
|
||||
define Build/Compile
|
||||
$(call PyBuild/Compile/Default)
|
||||
$(call PyBuild/Compile)
|
||||
endef
|
||||
endif # python
|
||||
|
||||
Reference in New Issue
Block a user