fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
123 stars 39 forks source link

Conditionalized requirements are picked up anyway #164

Open hroncok opened 6 years ago

hroncok commented 6 years ago

https://github.com/jupyterlab/jupyterlab/blob/987702e76cb17265fa249ba67775e35804a69077/setup.py#L136

    'futures;python_version<"3.0"',
    'subprocess32;python_version<"3.0"'

Yet with pyp2rpm -b3 I got this:

BuildRequires:  python3dist(futures)
BuildRequires:  python3dist(subprocess32)