[arch-commits] Commit in python-setuptools/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 11:56:33 UTC 2020


    Date: Monday, November 9, 2020 @ 11:56:33
  Author: felixonmars
Revision: 399689

undo vendoring

Modified:
  python-setuptools/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-09 11:55:34 UTC (rev 399688)
+++ PKGBUILD	2020-11-09 11:56:33 UTC (rev 399689)
@@ -23,7 +23,7 @@
 export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
 
 prepare() {
-  # rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
 
   # Upstream devendoring logic is badly broken, see:
   # https://bugs.archlinux.org/task/58670
@@ -31,14 +31,14 @@
   # https://github.com/pypa/setuptools/issues/1383
   # The simplest fix is to simply rewrite import paths to use the canonical
   # location in the first place
-  # for _module in setuptools pkg_resources '' ; do
-  #     find setuptools-$pkgver -name \*.py -exec sed -i \
-  #         -e 's/from '$_module.extern' import/import/' \
-  #         -e 's/from '$_module.extern'./from /' \
-  #         -e 's/import '$_module.extern'./import /' \
-  #         -e "s/__import__('$_module.extern./__import__('/" \
-  #         {} +
-  # done
+  for _module in setuptools pkg_resources '' ; do
+      find setuptools-$pkgver -name \*.py -exec sed -i \
+          -e 's/from '$_module.extern' import/import/' \
+          -e 's/from '$_module.extern'./from /' \
+          -e 's/import '$_module.extern'./import /' \
+          -e "s/__import__('$_module.extern./__import__('/" \
+          {} +
+  done
 
   # Fix for flake8
   sed -i 's/import six, ordered_set/import six\nimport ordered_set/' setuptools-$pkgver/setuptools/command/sdist.py



More information about the arch-commits mailing list