Skip to contentSkip to conversation

package/python-requests fix dependencies

PATCH New Sven Haardiek 2 participants 2 messages Apr 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-requests fix dependencies

Requests need hashlib to run. Otherwise it is not possible to import, due to missing e.g. md5.

---
 package/python-requests/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/python-requests/Config.in +2 -0
index d2726fb26a..d51b4079cb 100644
@@ -4,6 +4,8 @@ config BR2_PACKAGE_PYTHON_REQUESTS
 	select BR2_PACKAGE_PYTHON_CHARDET # runtime
 	select BR2_PACKAGE_PYTHON_IDNA # runtime
 	select BR2_PACKAGE_PYTHON_URLLIB3 # runtime
+	select BR2_PACKAGE_PYTHON_HASHLIB # runtime
+	select BR2_PACKAGE_PYTHON3_HASHLIB # runtime
 	select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 # runtime
 	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 package/python-requests fix dependencies

Sven, All,

On 2018-04-29 13:40 +0200, Sven Haardiek spake thusly:

Quoted 13 lines

Requests need hashlib to run. Otherwise it is not possible to import, due to missing e.g. md5.

---
 package/python-requests/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/python-requests/Config.in +0 -0
index d2726fb26a..d51b4079cb 100644

package/python-requests/Config.in config BR2_PACKAGE_PYTHON_REQUESTS · line 8

Quoted 5 lines
package/python-requests/Config.in +2 -0
@@ -4,6 +4,8 @@ config BR2_PACKAGE_PYTHON_REQUESTS
 	select BR2_PACKAGE_PYTHON_CHARDET # runtime
 	select BR2_PACKAGE_PYTHON_IDNA # runtime
 	select BR2_PACKAGE_PYTHON_URLLIB3 # runtime
+	select BR2_PACKAGE_PYTHON_HASHLIB # runtime
+	select BR2_PACKAGE_PYTHON3_HASHLIB # runtime

This is definitely incorrect: you can't select for both pyhon and python3 at the same time. See how it idoes done for SSL, just below:

package/python-requests/Config.in config BR2_PACKAGE_PYTHON_REQUESTS · line 11

Quoted 3 lines
package/python-requests/Config.in +0 -0
 	select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 # runtime
 	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'