From: Alexey Shabalin <a.shabalin@gmail.com> To: Stanislav Levin <slev@basealt.ru> Cc: ALT Linux Team development discussions <devel@lists.altlinux.org>, Alexey Shabalin <shaba@altlinux.org> Subject: Re: [devel] python and typelib Date: Wed, 4 Dec 2019 21:22:56 +0300 Message-ID: <CAEdvWkQDxFk4aXYxYh1ML+=40nAU0+aT9BehhADMmE3EMj3r3Q@mail.gmail.com> (raw) In-Reply-To: <361b7a9b-d9b1-1bc9-a4a3-7b4700402bda@basealt.ru> пн, 2 дек. 2019 г. в 23:10, Stanislav Levin <slev@basealt.ru>: > > > > 02.12.2019 22:27, Alexey Shabalin пишет: > > > > Не совсем понял, к чему Вы тут придираетесь? > > "Libosinfo" из "gi.repository" по сути и есть typelib(Libosinfo), > > потому что только пакет > > libosinfo-gir провайдит typelib(Libosinfo). Поэтому надо выставить > > зависимость на typelib(Libosinfo), что специально умеет делать > > rpm-build-gir. > > Да, есть более тяжёлые случаи, когда провайдят разные версии разные > > пакеты(например gtk2 и gtk3). > > Да какие придирки? :-) Я вообще не знаю, что такое rpm-build-gir и с чем > его едят. > > Только лишь обратил внимание не логичную (по-моему) вещь, а именно: > > клиент (например, virt-manager), использующий gi.repository не должен > ничего знать про то, как устроен импортируемый объект (Libosinfo) и уж > тем более требовать за > него что-то для себя. Поэтому, по-моему, именно gi.repository > (python3-module-pygobject3) должен зависеть от libosinfo-gir, а не > virt-manager и подобные клиенты. > В случае с gi.repository ваша логика абсолютно неверна :) gi.repository - это не простой модуль python, а прокладка между python и бинарными библиотеками специального типа typelib. Это такой спец тип библиотек, которые удобно и просто использовать в разных языках, например python, javascript(можно посмотреть на gnome-shell), кажется vala(могу ошибаться), возможно где-то еще(вроде dmd на их основе делает свои биндинги). Разные проекты, в основном использующие glib2, gtk, предоставляют эти бинарные библиотеки typelib. У нас они отделены в отдельные пакеты *-gir. Каждый такой пакет содержит Provides: typelib(foo). gi.repository ничего не знает о сторонних проектах. Он просто позволяет подгружать эти библиотеки. Поэтому он не может вытягивать все возможные пакеты с typelib. В выше описанном примере, virt-manager сам должен позаботиться о вытягивании пакета libosinfo-gir. > В любом случае спасибо за предоставленную информацию! Пожалуйста. -- Alexey Shabalin
next prev parent reply other threads:[~2019-12-04 18:22 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-02 17:39 Alexey Shabalin 2019-12-02 18:52 ` Stanislav Levin 2019-12-02 19:27 ` Alexey Shabalin 2019-12-02 20:10 ` Stanislav Levin 2019-12-04 18:22 ` Alexey Shabalin [this message] 2019-12-03 12:59 ` Mikhail Efremov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAEdvWkQDxFk4aXYxYh1ML+=40nAU0+aT9BehhADMmE3EMj3r3Q@mail.gmail.com' \ --to=a.shabalin@gmail.com \ --cc=devel@lists.altlinux.org \ --cc=shaba@altlinux.org \ --cc=slev@basealt.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git