[Fedora-packaging] python module not installed

Toshio Kuratomi a.badger at gmail.com
Thu Mar 13 21:57:20 UTC 2014


On Wed, Mar 12, 2014 at 08:52:25PM -0300, "Germán A. Racca" wrote:
> On 03/12/2014 07:45 PM, Toshio Kuratomi wrote:
> >On Wed, Mar 12, 2014 at 05:23:17PM -0300, "Germán A. Racca" wrote:
> >>Hi list,
> >>
> >>I'm updating a python package and I have the following issue. As
> >>per Fedora packaging guidelines, we should use:
> >>
> >>%build
> >>%{__python2} setup.py build
> >>
> >>%install
> >>%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
> >>
> >>which is fine to me. But with this new version of my package, the
> >>module doesn't get copied if --skip-build is present (it only
> >>copies the egg):
> >>
> >>running install
> >>running install_lib
> >>warning: install_lib: 'build/lib' does not exist -- no Python modules
> >>to install
> >>...
> >>
> >>What should I do? If I remove --skip-build, it works fine, but I'm not
> >>sure if I can do that in the spec file.
> >>
> >Where's the srpm at?  I'll take a look.
> >
> >-Toshio
> 
> Hi Toshio,
> 
> I didn't build the srpm yet, but this is the spec file so far:
> 
> http://paste.fedoraproject.org/84109/44860051/
> 
I got busy but I started taking a look.  It seems like the build scripts for
that package (it's setup.py) are overriding some of the standard distutils
commands with ones from astropy.  I need to look at those and see if they're
what's causing this issue.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20140313/15dec76b/attachment.sig>


More information about the packaging mailing list