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: enhancement Stage:
Components: Distutils Versions: Python 2.6, Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: tarek Nosy List: pearu, tarek, terry.reedy
Priority: low Keywords:

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

Messages (2)
msg18738 - (view) Author: Pearu Peterson (pearu) Date: 2003-10-23 08:19
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
msg108761 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-06-27 00:17
see msg108752
History
Date User Action Args
2022-04-11 14:56:00adminsetgithub: 39449
2010-06-27 00:17:59terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg108761

resolution: wont fix
2009-02-11 02:52:00ajaksu2setassignee: tarek
nosy: + tarek
2008-01-04 00:59:41christian.heimessetpriority: normal -> low
type: enhancement
versions: + Python 2.6, Python 2.5, - Python 2.3
2003-10-23 08:19:20pearucreate