diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-12-29 19:55:38 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-12-29 19:55:38 +0100 |
commit | d53a6aa5e77d8a58ce07b2151b3f57e979d45025 (patch) | |
tree | cc4c58f1f9019177f99b9d8b9b06a8b0ffa7f20a /extra | |
parent | 6c19491a6f95082cf773c59ea55c0c2c19075713 (diff) | |
download | packages-d53a6aa5e77d8a58ce07b2151b3f57e979d45025.tar.xz |
extra/python-setuptools: bootstrapping
Diffstat (limited to 'extra')
-rw-r--r-- | extra/python-setuptools/PKGBUILD | 28 | ||||
-rw-r--r-- | extra/python-setuptools/setuptools-57.4.0-no-2to3.patch | 38 |
2 files changed, 53 insertions, 13 deletions
diff --git a/extra/python-setuptools/PKGBUILD b/extra/python-setuptools/PKGBUILD index f72af23f..eba890bf 100644 --- a/extra/python-setuptools/PKGBUILD +++ b/extra/python-setuptools/PKGBUILD @@ -14,21 +14,23 @@ eval "$( ' )" -# repeat bootstrap hack from upstream, enable pip -eval "$( - declare -f prepare | \ - sed ' - /rm/ i \ - python -m ensurepip - ' -)" +unset checkdepends +unset check + +makedepends=(${makedepends[@]//python-setuptools/}) +makedepends=(${makedepends[@]//python2-setuptools/}) +depends=(${depends[@]//python-pyparsing/}) +depends=(${depends[@]//python2-pyparsing/}) +makedepends+=(python python2) + +# bootstrapping without python2 broken stuff +source+=('setuptools-57.4.0-no-2to3.patch') +sha512sums+=('cb9a654825dfea7f61b394d4d7e06202569efc7f8efac5527c3653c111b349ebe182b50332d41760e1585685923b7a17d8bb3e4ada48d33aebc4c2e379e2342c') -# force bootstrapping eval "$( declare -f prepare | \ sed ' - $ i \ - python bootstrap.py - ' + /cd/ a \ + patch -Np1 -i "${srcdir}"/setuptools-57.4.0-no-2to3.patch + ' )" - diff --git a/extra/python-setuptools/setuptools-57.4.0-no-2to3.patch b/extra/python-setuptools/setuptools-57.4.0-no-2to3.patch new file mode 100644 index 00000000..bcd24e18 --- /dev/null +++ b/extra/python-setuptools/setuptools-57.4.0-no-2to3.patch @@ -0,0 +1,38 @@ +diff -rauN setuptools-57.4.0/setup.cfg setuptools-57.4.0-no-2to3-patch/setup.cfg +--- setuptools-57.4.0/setup.cfg 2021-07-19 02:30:57.000000000 +0200 ++++ setuptools-57.4.0-no-2to3-patch/setup.cfg 2021-12-29 19:43:52.034173281 +0100 +@@ -108,7 +108,6 @@ + setuptools.finalize_distribution_options = + parent_finalize = setuptools.dist:_Distribution.finalize_options + keywords = setuptools.dist:Distribution._finalize_setup_keywords +- 2to3_doctests = setuptools.dist:Distribution._finalize_2to3_doctests + distutils.setup_keywords = + eager_resources = setuptools.dist:assert_string_list + namespace_packages = setuptools.dist:check_nsp +@@ -127,10 +126,6 @@ + dependency_links = setuptools.dist:assert_string_list + test_loader = setuptools.dist:check_importable + test_runner = setuptools.dist:check_importable +- use_2to3 = setuptools.dist:assert_bool +- convert_2to3_doctests = setuptools.dist:assert_string_list +- use_2to3_fixers = setuptools.dist:assert_string_list +- use_2to3_exclude_fixers = setuptools.dist:assert_string_list + egg_info.writers = + PKG-INFO = setuptools.command.egg_info:write_pkg_info + requires.txt = setuptools.command.egg_info:write_requirements +diff -rauN setuptools-57.4.0/setuptools/command/build_py.py setuptools-57.4.0-no-2to3-patch/setuptools/command/build_py.py +--- setuptools-57.4.0/setuptools/command/build_py.py 2021-07-19 02:30:57.000000000 +0200 ++++ setuptools-57.4.0-no-2to3-patch/setuptools/command/build_py.py 2021-12-29 19:46:48.627752136 +0100 +@@ -123,9 +123,9 @@ + outf, copied = self.copy_file(srcfile, target) + make_writable(target) + srcfile = os.path.abspath(srcfile) +- if (copied and +- srcfile in self.distribution.convert_2to3_doctests): +- self.__doctests_2to3.append(outf) ++# if (copied and ++# srcfile in self.distribution.convert_2to3_doctests): ++# self.__doctests_2to3.append(outf) + + def analyze_manifest(self): + self.manifest_files = mf = {} |