Merge pull request #4558 from commodo/python-cleanup1

python,python3: rename PyBuild/Compile rules & remove .egg-info from packages
This commit is contained in:
Hannu Nyman
2017-07-09 21:04:38 +03:00
committed by GitHub
5 changed files with 16 additions and 6 deletions

View File

@@ -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

View File

@@ -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