This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bdist_rpm failure when no setup.py
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: nnorwitz, pearu
Priority: normal Keywords:

Created on 2003-10-23 12:44 by pearu, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg18739 - (view) Author: Pearu Peterson (pearu) Date: 2003-10-23 12:44
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

<snip>
+ 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
msg18740 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-10-23 13:15
Logged In: YES 
user_id=33168

Duplicate of 828743
History
Date User Action Args
2022-04-11 14:56:00adminsetgithub: 39450
2003-10-23 12:44:41pearucreate