mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
gnu: python2-setuptools: Patch source code.
* gnu/packages/python-xyz.scm (python2-setuptools)[arguments]: Add phase 'compatibility-fixes.
This commit is contained in:
parent
0b4300d4fd
commit
75ca0e5258
1 changed files with 11 additions and 1 deletions
|
@ -1863,7 +1863,17 @@ (define-public python2-setuptools
|
|||
;; 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/")
|
||||
|
|
Loading…
Reference in a new issue