gnu: Remove python-setuptools-for-tensorflow.

* gnu/packages/python-xyz.scm (python-setuptools-for-tensorflow): Delete variable.

Change-Id: I681ce2d7797042bef830135789f4b466bd1fa14c
This commit is contained in:
Andreas Enge 2025-09-15 12:08:33 +02:00
parent 9a6afcb147
commit 54a8f15b24
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -4886,45 +4886,6 @@ other machines, such as over the network.")
@code{setup.cfg}.")
(license license:asl2.0)))
;; The setuptools provided by Python 3.9 is too new for Tensorflow.
(define-public python-setuptools-for-tensorflow
(hidden-package
(package
(inherit python-setuptools)
(version "39.1.0")
(source (origin
(inherit (package-source python-setuptools))
(uri (pypi-uri "setuptools" version ".zip"))
(sha256
(base32
"1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65"))))
(arguments
`(#:tests? #f ; tests require vendored resources
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'compatibility-fixes
(lambda _
;; Python 3.9 no longer has HTMLParser
(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")
;; 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)))))
(define-public python-uniseg
(package
(name "python-uniseg")