python3 optional deps

Jacek Konieczny jajcus at jajcus.net
Fri May 6 09:11:26 CEST 2016


On 2016-05-04 11:11, Elan Ruusamäe wrote:
>
> can someone check (and fix?) why those optional deps:
> https://github.com/docker/docker-py/blob/1.8.1/setup.py#L14-L17
>
>
>
>
>     extras_require = {
>
>     ':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5',
>
>     ':python_version < "3.3"': 'ipaddress >= 1.0.16',
>
>     }
>
>
>
> end up in python3 egg and therefore rpm deps:

They will end up in the egg, that is the design. Those should not be 
converted to rpm deps, though. And for python3 package these deps are 
useless even in the egg-info.

I guess the python dependency generator should be fixed in our RPM, to 
ignore the 'extras' dependencies (or to make them 'suggest', skipping 
the ':python_version' ones.

The easy fix for python-docker.spec would be to strip those from
docker_py-1.8.1-py3.5.egg-info/requires.txt (everything from the first '[').

Jacek


More information about the pld-devel-en mailing list