On Sun, 2010-08-22 at 16:31 +0200, Thomas Spura wrote:
On Sat, 21 Aug 2010 18:48:31 -0400
David Malcolm wrote:
[snip]
>
> So you'll need to update the %files for python3 subpackages, listing
> something like:
> foo/__pycache__
> to capture the directory and the bytecode files within.
Unfortunately there is sometimes also a __pycache__ directory in
%{python_sitearch} (etc...) - for example in python3-minimock:
Oops; good catch - thanks!
Looks like the python3 package needs to own this.
Toshio fixed this in python3-3.2-0.2.a1
http://koji.fedoraproject.org/koji/buildinfo?buildID=191446
(I only noticed this after trying to push my fix for this :( )
Yes; anything that installs any .py files into %{python_sitearch} should
also be installing bytecode files into
%{python_sitearch}/__pycache__
and if you install subdirectories, the subdirectories should themselves
install a __pycache__ subdir.
Checking for unpackaged
file(s): /usr/lib/rpm/check-files
/builddir/build/BUILDROOT/python-minimock-1.2.5-5.fc15.noarch
error: Installed (but unpackaged) file(s)
found: /usr/lib/python3.2/site-packages/__pycache__/minimock.cpython-32.pyc
/usr/lib/python3.2/site-packages/__pycache__/minimock.cpython-32.pyo
Installed (but unpackaged) file(s) found:
/usr/lib/python3.2/site-packages/__pycache__/minimock.cpython-32.pyc
/usr/lib/python3.2/site-packages/__pycache__/minimock.cpython-32.pyo
I decided to *NOT* own the __pycache__ directory, because other python3
packages will have that directory too, so I _believe_ the main python3
package should own them, isn't it?
That sounds correct.
python3-minimock currently only owns:
%{python3_sitelib}/__pycache__/minimock*
This seems correct.
Thanks!
Dave