Re: python package: pyo files

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

 



On Wednesday 09 August 2006 18:54, Toshio Kuratomi wrote:
> The only thing what's disallowed is not listing the .pyo's in the %files
> section at all.
>
> > Since rpm-build-4.4.1-0.1 (Dec 05 2004), the rpm macro __os_install_post
> > contains /usr/lib/rpm/brp-python-bytecompile, which compiles .py files
> > into .pyc and .pyo.
>
> If someone will remind me of which FC version this was added in I'll add
> this to the page:
>
>   As of FCX, rpm automatically compiles to .pyc and .pyo files for you.
> As long as you are not going to build your package on versions older
> than that you do not need to manually byte compile the files.  You still
> need to include the files in your %files section, though.

FC-4, if I understand CVS logs well.

Can you add a paragraph that tells explicitly that shipping or ghosting 
the .pyo file is packager's discretion? You should even precise that .pyc 
must be shipped in the package.

Do you see why Debian do not ship .pyc files? It seems that it allows to 
re-bytecompile all .pyc files, when at a python upgrade, without bumping 
packages version.

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

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux