[issue11122] bdist_rpm fails

2012-03-07 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

More info on rpm vs. rpmbuild: http://bugs.python.org/issue1533164#msg82592

--
keywords: +easy
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2012-02-10 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Given that we’ve made changes to distutils for Debian multiarch or Mac OS X 
compiler breakage, I now think that switching distutils to only use rpmbuild 
would be reasonable.

--
versions:  -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-06 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for volunteering.  I will review and apply when the py3k branch is 
unfrozen.

 I'll write a docs and script patch for this next week...
Note that I proposed to patch the docs only.

--
assignee: tarek - eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-06 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

BTW, it may be useful to point people to http://pypi.python.org/pypi/pypi2rpm, 
which contains an updated command, bdist_rpm2.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-05 Thread James

James purplei...@gmail.com added the comment:

I'll write a docs and script patch for this next week...

I'm happy to do the work,

Thanks for the comments.

James

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue11122] bdist_rpm fails

2011-02-04 Thread James

New submission from James purplei...@gmail.com:

Hi distutils,

When I run:

./setup.py bdist --formats=rpm

on my source directory, I get the error:

rpm -ba --define _topdir /home/james/code/scantran/build/bdist.linux-x86_64/rpm 
--clean build/bdist.linux-x86_64/rpm/SPECS/scantran.spec
-ba: unknown option
error: command 'rpm' failed with exit status 1

It seems the problem can be fixed by installing the rpm-build package (on 
fedora 14 anyways) and so perhaps something should be done so that this is more 
obvious...

HTH,
James

--
assignee: tarek
components: Distutils
messages: 127942
nosy: eric.araujo, purpleidea, tarek
priority: normal
severity: normal
status: open
title: bdist_rpm fails
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Does this mean that there is one rpm command that does not have all options, 
and that rpm-build overwrites that command with another one that does the right 
thing?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread James

James purplei...@gmail.com added the comment:

In the source for distutils it seems to attempt to use 'rpmbuild' if it exists, 
but otherwise falls back on regular 'rpm', however in my rpm:

$ rpm --version
RPM version 4.8.1

this fails as there is no -ba option.

James

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

What is your OS name and version?  Is that rpm version considered obsolete or 
not?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

rpm -ba is very old. I think it's been at least since 2002 that -ba was 
supported by rpm.

I believe bdist_rpm is calling rpmbuild -ba, and if that doesn't exist, then 
rpm -ba is a transition strategy until all systems supported rpmbuild. This 
transition period should be over. Unfortunately today it's far more likely that 
rpm -ba will not be what you want to call, but rpm will almost always be 
found, giving this error.

Most systems (certain RedHat based) ship rpmbuild as a separate command. RedHat 
installs it via the rpm-build package.

I'd suggest just switching bdist_rpm to always use rpmbuild. Then at least the 
error would be that rpmbuild isn't found.

--
nosy: +eric.smith

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

This is a gray area between bugfix and bahavior change forbidden by the feature 
freeze.  Would it be okay for you to add a note in the docs and close this 
report?

--
versions: +Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11122] bdist_rpm fails

2011-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 Would it be okay for you to add a note in the docs and close this report?

I meant to ask whether you would agree with that outcome, not that you should 
do the work (you’re welcome to provide a patch if you want to, but that’s not 
required).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11122
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com