[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: gnu: python2-setuptools: Patch source code.
From: |
guix-commits |
Subject: |
01/03: gnu: python2-setuptools: Patch source code. |
Date: |
Thu, 12 May 2022 08:19:08 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 75ca0e52581f7da95f540acadada671ee08a0cda
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 11 16:07:53 2022 +0200
gnu: python2-setuptools: Patch source code.
* gnu/packages/python-xyz.scm (python2-setuptools)[arguments]: Add phase
'compatibility-fixes.
---
gnu/packages/python-xyz.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ab4102273a..0ef71605e9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1863,7 +1863,17 @@ Python 3 support.")
;; FIXME: Tests require pytest, which itself relies on setuptools.
;; One could bootstrap with an internal untested setuptools.
(arguments
- `(#:tests? #f))
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'compatibility-fixes
+ (lambda _
+ ;; HTMLParser no longer exists.
+ (substitute* "setuptools/py33compat.py"
+ (("html_parser.HTMLParser\\(\\).unescape")
+ "html.unescape"))
+ ;; This needs distutils.msvc9compiler
+ (delete-file "setuptools/tests/test_msvc.py"))))))
(native-inputs
(list unzip))
(home-page "https://pypi.org/project/setuptools/")