Issue 828743: bdist_rpm failure when no setup.py (original) (raw)

Hi,

It appeas that setup.py is hardcoded into bdist_rpm.py and this causes failure whenever using setup.py with a different name. For example: python setup_xxx.py bdist_rpm results in

+ env 'CFLAGS=-O2 -march=i386 -mcpu=i686' python setup.py build python: can't open file 'setup.py' error: Bad exit status from /var/tmp/rpm-tmp.14535 (%build)

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.14535 (%build) error: command 'rpmbuild' failed with exit status 1

Would it be possible for bdist_rpm.py to use the same setup.py filename in def_build variable that called it?

Pearu