From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: devel@lists.altlinux.org
Subject: [devel] I: python support in SourceAnalyzer
Date: Wed, 13 Jul 2016 23:07:40 +0300
Message-ID: <20160713200739.GA6318@dad.imath.kiev.ua> (raw)
Господа,
в библиотеке SourceAnalyzer с версии
#166967 perl-RPM-Source-Dependency-Analyzer-0.043-alt1.src.rpm
появилась поддержка python.
Это будет далее нужно для будущих скриптов создания и обновления
модулей питон, но код можно уже сейчас пошупать с помощью
утилиты buildreq-src. Так как по исходникам не всегда легко понять,
под каким питоном будет работать код, версии питона
надо явно указать в опции --sourcedep-context.
Пример. распакуем исходники python-module-greenrpc-0.1.4
в папку greenrpc-0.1.4.
1)
$ buildreq-src greenrpc-0.1.4
# BEGIN SourceDeps(oneline):
BuildRequires: python-devel
# END SourceDeps(oneline)
Без опции --sourcedep-context питоньи зависимости не найдены.
2) с --sourcedep-context=python2
$ buildreq-src --sourcedep-context=python2 greenrpc-0.1.4
# BEGIN SourceDeps(oneline):
BuildRequires: python-devel python-modules python2.7(gevent) python2.7(gevent.server) python2.7(gevent.socket) python2.7(json) python2.7(msgpack) python2.7(requests) python2.7(setuptools)
# END SourceDeps(oneline)
3) с --sourcedep-context=python3
$ buildreq-src --sourcedep-context=python3 greenrpc-0.1.4
INFO: SourceAnalyzer: nothing in python3 provides urlparse.
SourceAnalyzer: some deps weren't found. Is DistroMap database outdated?
# BEGIN SourceDeps(oneline):
BuildRequires: python3(gevent) python3(gevent.server) python3(gevent.socket) python3(msgpack) python3(requests) python3(setuptools) python3-devel
# END SourceDeps(oneline)
Видим, что под питон3 не соберешь, нет urlparse.
4) для обеих питонов сразу
$ buildreq-src --sourcedep-context=python2,python3 testdata/python/greenrpc
INFO: SourceAnalyzer: nothing in python3 provides urlparse.
SourceAnalyzer: some deps weren't found. Is DistroMap database outdated?
# BEGIN SourceDeps(oneline):
BuildRequires: python-devel python-modules python2.7(gevent) python2.7(gevent.server) python2.7(gevent.socket) python2.7(json) python2.7(msgpack) python2.7(requests) python2.7(setuptools) python3(gevent) python3(gevent.server) python3(gevent.socket) python3(msgpack) python3(requests) python3(setuptools) python3-devel
# END SourceDeps(oneline)
--
I V
reply other threads:[~2016-07-13 20:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20160713200739.GA6318@dad.imath.kiev.ua \
--to=vlasenko@imath.kiev.ua \
--cc=devel@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 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