Drop python-six dependency#637
Conversation
|
The enhancement is a good direction, but I worry it makes the only important case -- when using Python2 without six module installed difficult to debug: In that case it won't report an import failure. Instead it will assign I'd like rather see and error on Python2 without six module. That means adding a condition on Python major version. In in that case it's probably simpler to set the variable to Also fedora/libmodulemd.spec for RPM packages still carry the dependency on the six module. That should also be adjusted. |
In Ubuntu and Debian we no longer ship Python 2.7, so the translation module is an unnecessary dependency. In Python 3 the text type is always 'str', so it is not needed. Simply set the value to 'unicode' on Python2, and 'str' on Python3.
Sure, done |
No longer used
|
ppisar
left a comment
There was a problem hiding this comment.
Great. Thanks for the cooperation.



In Ubuntu and Debian we no longer ship Python 2.7, so the translation module is an unnecessary dependency. In Python 3 the text type is always 'str', so it is not needed. Simply set the value to 'unicode' on Python2, and 'str' on Python3.