mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-21 01:26:43 +01:00
gnu: python-setuptools-for-tensorflow: Patch for Python 3.10 compatibility.
* gnu/packages/python-xyz.scm (python-setuptools-for-tensorflow)[arguments]: Patch collections imports; remove wininst support.
This commit is contained in:
parent
0ea5ef000d
commit
e9f01bfc97
1 changed files with 13 additions and 1 deletions
|
@ -2311,8 +2311,20 @@ (define-public python-setuptools-for-tensorflow
|
|||
(substitute* "setuptools/py33compat.py"
|
||||
(("html_parser.HTMLParser\\(\\).unescape")
|
||||
"html.unescape"))
|
||||
;; collections classes have moved in Python 3.10
|
||||
(substitute* "pkg_resources/_vendor/pyparsing.py"
|
||||
(("collections.MutableMapping")
|
||||
"collections.abc.MutableMapping")
|
||||
(("collections.Iterable")
|
||||
"collections.abc.Iterable"))
|
||||
;; This needs distutils.msvc9compiler
|
||||
(delete-file "setuptools/tests/test_msvc.py"))))))
|
||||
(delete-file "setuptools/tests/test_msvc.py")
|
||||
;; See https://github.com/pypa/setuptools/issues/2558
|
||||
(delete-file "setuptools/command/bdist_wininst.py")
|
||||
(substitute* "setuptools/command/install_scripts.py"
|
||||
(("bw_cmd =.*") "\n")
|
||||
(("is_wininst =.*")
|
||||
"is_wininst = False\n")))))))
|
||||
(native-inputs
|
||||
(list python-pytest python-mock python-six)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue