From: Ivan Zakharyaschev <imz@altlinux.org> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] сборка python3 Date: Wed, 27 Feb 2019 13:15:09 +0300 (MSK) Message-ID: <alpine.LFD.2.20.1902271307381.6081@imap.altlinux.org> (raw) In-Reply-To: <CAATpADXYWonJKhB8_9UVgcKb64-nxsNJBLaqANFNE_GngbH9Ng@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 2921 bytes --] On Wed, 27 Feb 2019, Vadim Gusev wrote: > Не получается собрать рабочий пакет с питоном3 в не стандартном месте. > Делал по инструкции https://www.altlinux.org/Python3 > Спек в конце. > Зависимости Provides/Requires проставляются автоматом. > После сборки устанавливаю первый пакет ztest, все хорошо. Зависимости > предоставляются: > > # rpm -q --provides ztest > python3(z) = set:edZq2 > > Устанавливаю второй ztest-server, который зависит от первого, получаю > ошибку: > > # rpm -Uhv ztest-server-1.0-alt1.x86_64.rpm > ошибка: неудовлетворенные зависимости: > python3(z) < 0 нужен для ztest-server-1.0-alt1 Ему нужно: %allow_python3_import_path ... В списке рассылки devel@ про это был рассказ, но сейчас search.altlinux.org ничего не находит. (По-моему, там индексирование списков рассылки сломано.) > # apt-get install 'python3(z)' > Чтение списков пакетов... Завершено > Построение дерева зависимостей... Завершено > Выбрано ztest для 'python3(z)' > Последняя версия ztest уже установлена. > > Вопрос - как решить проблему "python3(z) < 0" ? > > ------------8<------------- > %define _unpackaged_files_terminate_build 1 > %define project ztest > %define install_app /var/www/webapps > > Summary: ztest > Name: %project > Version: 1.0 > Release: alt1 > Group: System/Servers > License: distributable > > BuildRequires(pre): rpm-build-python3 >= 0.1.9.3-alt1 > BuildRequires: python3-dev > > %add_python3_path %install_app > %add_python3_lib_path %install_app/pythonlibs Это помогает провайдерам модулей, но не пользователям. > %description > Z test > > %package server > Summary: ztest server > Group: System/Servers > Requires: %project = %EVR > %add_findreq_skiplist %install_app/pythonlibs > > %description server > Z test server > > %build > mkdir -p pythonlibs/z > echo -en "def zstart():\n\treturn 1\n" > pythonlibs/z/z.py > echo -en "from z import zstart\n" > pythonlibs/z/z-server.py > > %install > mkdir -p %buildroot%install_app > cp -r pythonlibs %buildroot%install_app > > %files > %defattr(-,apache2,webmaster) > %install_app/* > %exclude %install_app/pythonlibs/z/z-server.py > > %files server > %defattr(-,apache2,webmaster) > %install_app/pythonlibs/z/z-server.py > > %changelog > * Tue Feb 26 2019 Vadim Gusev <gusevvn@stella> 1.0 > - initial build > ------------>8------------- -- Best regards, Ivan
next parent reply other threads:[~2019-02-27 10:15 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-02-27 10:15 ` Ivan Zakharyaschev [this message] 2019-02-27 13:14 ` Ivan Zakharyaschev
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=alpine.LFD.2.20.1902271307381.6081@imap.altlinux.org \ --to=imz@altlinux.org \ --cc=sisyphus@lists.altlinux.org \ /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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git