0001-setup.py-require-wheel-only-when-installing-from-pip.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 3f2746ad05067aad960f7a08e53f6e72c5eecd07 Mon Sep 17 00:00:00 2001
  2. From: Bartosz Bilas <b.bilas@grinn-global.com>
  3. Date: Sat, 12 Jun 2021 13:50:15 +0200
  4. Subject: [PATCH] setup.py: require wheel only when installing from pip
  5. Fix the build from sources (that don't require wheel)
  6. in environments where this module is not available.
  7. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
  8. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
  9. ---
  10. Upstream status: https://github.com/espressif/esptool/pull/632
  11. setup.py | 6 +++++-
  12. 1 file changed, 5 insertions(+), 1 deletion(-)
  13. diff --git a/setup.py b/setup.py
  14. index 2b17b28..1a8421d 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -110,7 +110,11 @@ setup(
  18. 'Programming Language :: Python :: 3.8',
  19. 'Programming Language :: Python :: 3.9',
  20. ],
  21. - setup_requires=['wheel'] if sys.version_info[0:2] not in [(3, 4), (3, 5)] else [],
  22. + setup_requires=(
  23. + ['wheel']
  24. + if 'bdist_wheel' in sys.argv and sys.version_info[0:2] not in [(3, 4), (3, 5)] else
  25. + []
  26. + ),
  27. extras_require={
  28. "dev": [
  29. 'flake8>=3.2.0',
  30. --
  31. 2.32.0