odubaj / rpms / file

Forked from rpms/file 4 years ago
Clone

e2cc435 always install python2-setuptools if python2 is enabled

Authored and Committed by kdudka 4 years ago
1 file changed. 5 lines added. 4 lines removed.
    always install python2-setuptools if python2 is enabled
    
    ... to fix the following build failure on Fedora rawhide:
    
    + cd python
    + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
    + /usr/bin/python2 setup.py build
    Traceback (most recent call last):
      File "setup.py", line 5, in <module>
        from setuptools import setup
    ImportError: No module named setuptools
    RPM build errors:
    error: Bad exit status from /var/tmp/rpm-tmp.BWebEV (%build)
    
        
file modified
+5 -4