diff options
| author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-10-04 22:22:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-04 22:22:38 +0300 |
| commit | 52157ed602df32659469f8d1982c09402f90e5c5 (patch) | |
| tree | 59fcee838577e59c6eb34ab7f9139ab7e4e706a9 /lang/python/python3/files/python3-package-install.sh | |
| parent | 32dbb7e865908aadfaf70e591f11fed56e86e3cb (diff) | |
| parent | 074d2863be48c1a9093fffcda91f7a328bc7d0cb (diff) | |
Merge pull request #4897 from commodo/python-egg-info-disable
python,python3: add option to keep egg-info dirs for python packages
Diffstat (limited to 'lang/python/python3/files/python3-package-install.sh')
| -rw-r--r-- | lang/python/python3/files/python3-package-install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/python3/files/python3-package-install.sh b/lang/python/python3/files/python3-package-install.sh index dd1e708fc..0b68dd245 100644 --- a/lang/python/python3/files/python3-package-install.sh +++ b/lang/python/python3/files/python3-package-install.sh @@ -47,7 +47,8 @@ process_filespec "$src_dir" "$dst_dir" "$filespec" || { } # delete egg-info directories -find "$dst_dir" -name "*.egg-info" | xargs rm -rf +[ "$PYTHON3_KEEP_EGGINFO" == "1" ] || \ + find "$dst_dir" -name "*.egg-info" | xargs rm -rf if [ "$mode" == "sources" ] ; then # Copy only python source files |
