Skip to contentSkip to conversation

python-pip: select BR2_PACKAGE_PYTHON_SETUPTOOLS

PATCH New Asaf Kahlon 2 participants 2 messages Oct 24, 2018 – Nov 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pip: select BR2_PACKAGE_PYTHON_SETUPTOOLS

pip needs pkg_resources, which is installed with setuptools.

---
 package/python-pip/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-pip/Config.in +1 -0
index 4fcd55e5ab..c523c938ad 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_PIP
 	bool "python-pip"
+	select BR2_PACKAGE_PYTHON_SETUPTOOLS
 	help
 	  The PyPA recommended tool for installing Python packages.
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 python-pip: select BR2_PACKAGE_PYTHON_SETUPTOOLS

Hello,

Quoted 6 lines · Asaf Kahlon

pip needs pkg_resources, which is installed with setuptools.

---
 package/python-pip/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks. However, it is worth mentioning that even with this, pip doesn't work here, because it needs SSL:

# pip install pyserial
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pyserial
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyserial/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyserial/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyserial/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyserial/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyserial/
  Could not fetch URL https://pypi.org/simple/pyserial/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyserial/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

However, this is only with the default pip configuration. I don't know if we want to enforce the need for SSL.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com