Mailinglist Archive: opensuse-buildservice (171 mails)

< Previous Next >
Re: [opensuse-buildservice] python, buildarch, and post build checks
  • From: Michael E Brown <Michael_E_Brown@xxxxxxxx>
  • Date: Wed, 2 Sep 2009 13:44:37 -0500
  • Message-id: <20090902184437.GA19232@xxxxxxxxxxxxxxx>
On Wed, Sep 02, 2009 at 01:21:56PM -0500, Jon Nelson wrote:
Using as my remote repo, I've been
getting errors like this:

"/usr/lib64/python2.6/site-packages/setuptools/command/setopt.pyc" is
not allowed in a noarch package.

However, /usr/lib64/python2.6 is where the python installation is located.

I see two conflicting problems here:

1. the package really is arch independant. .pyo and .pyc files are,
this provides no shared libraries, etc...
2. the python install is directing the package to usr /usr/lib64

I don't want to remove the BuildArch: noarch directive, as the package
really is noarch.

Where *should* the package be installing so that it doesn't trigger this

Also, how do I turn off individual post-build checks (like the bz2
check) for local OBS instances?

I am having a very similar problem.
RPM build errors:
File not found by glob:
System halted.

It looks to me like python and rpm disagree over what py_sitedir should be. I
have this in my spec file:
# per fedora and suse python packaging guidelines
# suse: will define py_sitedir for us
# fedora: use the !? code below to define when it isnt already
%{!?py_sitedir: %define py_sitedir %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}

And then I use "%{py_sitedir}/*" in my %files list. It looks like py_sitedir is
set to one thing and python is installing the files elsewhere.
< Previous Next >
Follow Ups