Re: Python, distutils, rpmbuild, issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/1/6 Gerry Reno <greno@xxxxxxxxxxx>:
> The next problem was with trying to use the python setuy.py target,
> "bdist_rpm".  The bdist_rpm worked fine when you run it on ubuntu or debian
> (with rpmbuild installed) but failed when it was run on any of the
> RedHat-based distros.  The error that was occurring on the RedHat-based
> distros is the "Installed (but unpackages) file(s) found".  Apparently on
> RedHat-based distros, rpmbuild creates .pyo files which never get added back
> into the INSTALLED_FILES from distutils and then of course it causes this
> error.  Has anyone solved this problem?  I see lots of references to this
> problem when I google it, but no solutions.

Here's how it worked for me some time ago:

$ echo 'python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT
--record=INSTALLED_FILES' > install.spec
$ python setup.py bdist_rpm --install-script=install.spec

- Thomas

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux