Sfoglia il codice sorgente

python-werkzeug: needs python zlib support

Otherwise import fails:

>>> import werkzeug
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/werkzeug/__init__.py", line 154, in <module>
  File "/usr/lib/python2.7/site-packages/werkzeug/exceptions.py", line 71, in <module>
  File "/usr/lib/python2.7/site-packages/werkzeug/wrappers.py", line 35, in <module>
  File "/usr/lib/python2.7/site-packages/werkzeug/formparser.py", line 21, in <module>
  File "/usr/lib/python2.7/site-packages/werkzeug/wsgi.py", line 17, in <module>
ImportError: No module named zlib

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 10 anni fa
parent
commit
82e23f15a1
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      package/python-werkzeug/Config.in

+ 2 - 0
package/python-werkzeug/Config.in

@@ -1,5 +1,7 @@
 config BR2_PACKAGE_PYTHON_WERKZEUG
 	bool "python-werkzeug"
+	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
 	help
 	  Werkzeug is a WSGI utility library for Python. It's widely
 	  used and BSD licensed.