![](https://seccdn.libravatar.org/avatar/ba6138f793e72be6644854fdc3ec2f02.jpg?s=120&d=mm&r=g)
Hello Jan, first and foremost again very many thanks for your comprehensive explanations that really help me to understand what I am doing (or at least make me feel more confident in doing things hopefully right ;-) Only FYI: In package hplip in OBS project "Printing" I have now in hplip.spec (excerpt excluding some of my comments therein): -------------------------------------------------------------------- %install make install DESTDIR=%{buildroot} ... %py_compile %{buildroot}%{_datadir}/hplip ... %py_compile -O %{buildroot}%{_datadir}/hplip # Hardlink .pyc and .pyo when they have same content. # Do not run "fdupes buildroot/_datadir/hplip" because # fdupes will link any files with same content there # which can have unexpected side-effects, compare # https://bugzilla.opensuse.org/show_bug.cgi?id=784670 for pyc in $( find %{buildroot}%{_datadir}/hplip -name '*.pyc' ) do pyo="${pyc%.pyc}.pyo" if test -f $pyo && diff -q $pyc $pyo 1>/dev/null then echo hardlinking $pyc and $pyo because both have same content ln -f $pyc $pyo fi done -------------------------------------------------------------------- Newest fdupes doesn't help me because I build also for SLE11 (and I do not really trust even the newest fdupes ;-)
... 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. ... ... there's also a number of smaller reasons: don't fix what ain't broken, every other distro does it like this, *-python-source would complicate packaging, etc.
But it is something worth thinking about.
I fully agree that openSUSE should not needlessly introduce complications that no other distro does which could only make our users complain that "openSUSE broke it". But perhaps it is worth discussing it with other distros. Note that I never suggested to not make .py files easily installable (not like .c sources that are in no binary RPM). I only suggested not to install .py files by default (but still provide them in a binary RPM sub-package in the same repository where also the other binary RPMs of that software are). FWIW: All .py files in /usr/share/hplip/ have a disk usage of 2.9M. All .pyc files in /usr/share/hplip/ have a disk usage of 2.3M and also all .pyo files in /usr/share/hplip/ have a disk usage of 2.3M which is not really surprising because almost all are hardlinked. All files in /usr/share/hplip/ have a disk usage of 16M. Perhaps it is nitpicking to not install .py files by default. 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