Hello Jan, On Oct 15 18:49 Jan Mat?jek wrote (excerpt):
Long version:
Very many thanks for your comprehensive explanation. Now I understand it (at least I think I understand it ;-)
As for "compiled as needed on each end-user's system" -> please note that if the user doesn't have write permissions to the install locations, they have to recompile the sources every time. This is the main reason to ship compiled bytecode. I would actually recommend that you include .pycs and .pyos for hplip in the rpm,
I will try to ship compiled bytecode for the next version of HPLIP in a way that must also work well for SLE11, see "osc results Printing hplip" A question regarding "include .pycs and .pyos": Do you recommend that a package schould provide both .pyc files and .pyo files for each .py file i.e. that during build both "%py_compile" and "%py_compile -O" should be run? According to https://en.opensuse.org/openSUSE:Packaging_Python#Byte_Compiled_Files I do not understand the reasoning behind when "Most of the time, .pyo files are exactly the same as .pyc." For me it looks overcomplicated to make and provide both and then link them via "%fdupes" if they are the same. Why not only make and provide the optimized files in any case? If .pyo files cannot be made for all .py files: Why not only provide .pyo files when they exist and only provide a .pyc file when a .pyo file is not possible? A subsequent question: When a package ships .pyc and/or .pyo files, I wonder if the .py files are still needed by a normal users. Does Python software work correctly only with .pyc and/or .pyo files? If yes, shoudn't then the .py files moved into a *-python-source sub-package that is not installed by default? We also do not install *.c source files but only the binaries. Strictly spaking, if it works only with .pyc and/or .pyo files, there is no need to provide the Python source files in the RPM. Only the SRPM provides the sources. Exception: Python scripts that are meant to be adapted by the end-user. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org