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

Re: Python, distutils, rpmbuild, issues



2009/1/6 Gerry Reno <greno verizon net>:
> 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


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