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