Re: BuildRequires: redhat-rpm-config

2013-11-15 Thread Kevin Kofler
Przemek Klosowski wrote (quoting from redhat-rpm-config): > >pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')" This should say: pyo="$(echo $pyc | sed -e 's/\.pyc$/.pyo/')" Note the added backslash. Kevin Kofler -- devel mailing list devel@lists.fedoraproject.org https://admin.fedora

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Panu Matilainen
On 11/15/2013 05:25 AM, Ralf Corsepius wrote: On 11/14/2013 06:13 PM, Panu Matilainen wrote: On 11/14/2013 05:45 PM, Adam Jackson wrote: On Thu, 2013-11-14 at 08:56 +, Richard W.M. Jones wrote: - Is this a bug in redhat-rpm-config/Python/RPM/Fedora? Yes. People hit this _constantly_

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Ralf Corsepius
On 11/14/2013 06:13 PM, Panu Matilainen wrote: On 11/14/2013 05:45 PM, Adam Jackson wrote: On Thu, 2013-11-14 at 08:56 +, Richard W.M. Jones wrote: - Is this a bug in redhat-rpm-config/Python/RPM/Fedora? Yes. People hit this _constantly_ in a lot of ways. Like "why am I not getting d

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Mathieu Bridon
On Thu, 2013-11-14 at 08:12 -0800, Toshio Kuratomi wrote: > If there's nothing else in python_sitelib besides this module, you can > change the glob there: > > %{python_sitearch}/* > %{python_sitelib}/* Or: %{python_sitearch}/*.py* %{python_sitelib}/*.py* Just to be sure not to include

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Przemek Klosowski
On 11/14/2013 03:56 AM, Richard W.M. Jones wrote: I had a bug filed that a Python package I'm maintaining cannot be rebuilt using 'rpmbuild --rebuild'. The failure was that the *.pyc and *.pyo files are missing. After a lot of head-scratching and debugging it turns out that brp-python-bytecompi

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Adam Jackson
On Thu, 2013-11-14 at 19:13 +0200, Panu Matilainen wrote: > On 11/14/2013 05:45 PM, Adam Jackson wrote: > > On Thu, 2013-11-14 at 08:56 +, Richard W.M. Jones wrote: > > > >> - Is this a bug in redhat-rpm-config/Python/RPM/Fedora? > > > > Yes. People hit this _constantly_ in a lot of ways. L

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Panu Matilainen
On 11/14/2013 05:45 PM, Adam Jackson wrote: On Thu, 2013-11-14 at 08:56 +, Richard W.M. Jones wrote: - Is this a bug in redhat-rpm-config/Python/RPM/Fedora? Yes. People hit this _constantly_ in a lot of ways. Like "why am I not getting debuginfo packages". The theory is that you migh

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Paul Wouters
On Thu, 14 Nov 2013, Adam Jackson wrote: Yes. People hit this _constantly_ in a lot of ways. Like "why am I not getting debuginfo packages". The theory is that you might want to build with some other set of macros, which is why rpmbuild doesn't just require r-r-c. I think this is foolish, an

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Toshio Kuratomi
On Thu, Nov 14, 2013 at 02:18:05PM +, Richard W.M. Jones wrote: > On Thu, Nov 14, 2013 at 05:36:34PM +0800, Mathieu Bridon wrote: > > For example, if right now you have: > > > > %dir %{python_sitelib}/mymodule > > %{python_sitelib}/mymodule/*.py > > %{python_sitelib}/mymodule/*.pyc

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Adam Jackson
On Thu, 2013-11-14 at 08:56 +, Richard W.M. Jones wrote: > I had a bug filed that a Python package I'm maintaining cannot be > rebuilt using 'rpmbuild --rebuild'. The failure was that the *.pyc > and *.pyo files are missing. > > After a lot of head-scratching and debugging it turns out that >

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Richard W.M. Jones
On Thu, Nov 14, 2013 at 05:36:34PM +0800, Mathieu Bridon wrote: > For example, if right now you have: > > %dir %{python_sitelib}/mymodule > %{python_sitelib}/mymodule/*.py > %{python_sitelib}/mymodule/*.pyc > %{python_sitelib}/mymodule/*.pyo > > You could replace that by: > >

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Mathieu Bridon
On Thu, 2013-11-14 at 10:27 +0100, Dan Horák wrote: > On Thu, 14 Nov 2013 08:56:22 + > "Richard W.M. Jones" wrote: > > However this raises some questions: > > > > - Should this package explicitly BR redhat-rpm-config? > > > > - Should all Python packages explicitly BuildRequire > > redhat-

Re: BuildRequires: redhat-rpm-config

2013-11-14 Thread Dan Horák
On Thu, 14 Nov 2013 08:56:22 + "Richard W.M. Jones" wrote: > > I had a bug filed that a Python package I'm maintaining cannot be > rebuilt using 'rpmbuild --rebuild'. The failure was that the *.pyc > and *.pyo files are missing. > > After a lot of head-scratching and debugging it turns out

BuildRequires: redhat-rpm-config

2013-11-14 Thread Richard W.M. Jones
I had a bug filed that a Python package I'm maintaining cannot be rebuilt using 'rpmbuild --rebuild'. The failure was that the *.pyc and *.pyo files are missing. After a lot of head-scratching and debugging it turns out that brp-python-bytecompile was not running, and that happens because the RP