From 00ef998413dc0fe6605653ae16f65d6377c2ec77 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 28 Feb 2021 13:02:15 +0100 Subject: [PATCH 03/12] gnu: python-wheel: Install entrypoint scripts * gnu/packages/python-build.scm (pythont-wheel) [arguments]: Add phase 'patch-enable-entrypoints. --- gnu/packages/python-build.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index 92dbda314f..232e24f470 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -47,10 +47,17 @@ "0ii6f34rvpjg3nmw4bc2h7fhdsy38y1h93hghncfs5akfrldmj8h")))) (build-system python-build-system) (arguments - ;; FIXME: The test suite runs "python setup.py bdist_wheel", which in turn - ;; fails to find the newly-built bdist_wheel library, even though it is - ;; available on PYTHONPATH. What search path is consulted by setup.py? - '(#:tests? #f)) + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-enable-entrypoints + (lambda _ + ;; python-wheel tells setuptools to not install entry point scripts + ;; by default. Stop doing that, so wheels built contain all data + ;; required. + (substitute* "wheel/bdist_wheel.py" + (("(install_scripts\\.no_ep = )True" all assignment) + (string-append assignment "False"))) + #t))))) (home-page "https://bitbucket.org/pypa/wheel/") (synopsis "Format for built Python packages") (description -- 2.26.2