Re: [opensuse-factory] New package safeeyes
2020-09-27 18:16, Huy Ngo rašė:
pkg_resources.DistributionNotFound: The 'pycairo>=1.11.1' distribution was not found and is required by PyGObject
I suppose the missing package (pycairo) that caused this was missed during the build process.
Thank you for testing! Seems it was not found at runtime (as it builds and works in my system). Please install python3-cairo package. We will add it as package runtime requirements. -- Regards, Mindaugas -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sun, Sep 27, 2020 at 12:35 PM opensuse.lietuviu.kalba <opensuse.lietuviu.kalba@gmail.com> wrote:
2020-09-27 18:16, Huy Ngo rašė:
pkg_resources.DistributionNotFound: The 'pycairo>=1.11.1' distribution was not found and is required by PyGObject
I suppose the missing package (pycairo) that caused this was missed during the build process.
Thank you for testing! Seems it was not found at runtime (as it builds and works in my system). Please install python3-cairo package. We will add it as package runtime requirements.
You can optionally have RPM generate all the Python dependencies automatically. If you add the following right after your BuildRequires list: BuildRequires: python-rpm-generators %{?python_enable_dependency_generator} Then, we can generate the correct dependencies from the egg/dist metadata. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
2020-09-27 19:41, Neal Gompa rašė:
You can optionally have RPM generate all the Python dependencies automatically.
If you add the following right after your BuildRequires list:
BuildRequires: python-rpm-generators %{?python_enable_dependency_generator}
Thank you, Neal, your solution may to work for TW (several Python dependencies found). However "nothing provides python-rpm-generators" for openSUSE Leap 15.0 and 15.1... Meanwhile for openSUSE Leap 15.2 it only suggest "python(abi) = 3.6 | python3-base" as dependency, though this is not enough for sure. -- Regards, Mindaugas -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hello Neal, Am Sonntag, 27. September 2020, 18:41:40 CEST schrieb Neal Gompa:
You can optionally have RPM generate all the Python dependencies automatically.
If you add the following right after your BuildRequires list:
BuildRequires: python-rpm-generators %{?python_enable_dependency_generator}
I'm always suprised about the one or other macro popping up... Is this documented somewhere? At least on https://en.opensuse.org/openSUSE:Packaging_Python I could not find anything. Thanks Axel1 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Axel Braun píše v Po 28. 09. 2020 v 10:05 +0200:
Is this documented somewhere? At least on https://en.opensuse.org/openSUSE:Packaging_Python I could not find anything.
It's a wiki. Please, add the information on that page. Thank you. Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mcepl@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Reading after a certain age diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking, just as the man who spends too much time in the theater is tempted to be content with living vicariously instead of living his own life. -- Albert Einstein to The Saturday Evening Post, October 1929
Hello Matěj, Am Montag, 28. September 2020, 10:38:46 CEST schrieb Matěj Cepl:
Axel Braun píše v Po 28. 09. 2020 v 10:05 +0200:
Is this documented somewhere? At least on https://en.opensuse.org/openSUSE:Packaging_Python I could not find anything.
It's a wiki. Please, add the information on that page.
I know how a wiki works :-) Anyhow, I can ony run behind the Python/Packaging Gurus. So even more I would appreciate if the inventors of the macros document those. I have actually added a section in the packaging wiki for the automatic determination of dependencies, with a link to the python-rpm-generators project page on github. I guess you know the maintainer pretty well ;-) Cheers Axel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (4)
-
Axel Braun
-
Matěj Cepl
-
Neal Gompa
-
opensuse.lietuviu.kalba