ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: python support in SourceAnalyzer
@ 2016-07-13 20:07 Igor Vlasenko
  0 siblings, 0 replies; only message in thread
From: Igor Vlasenko @ 2016-07-13 20:07 UTC (permalink / raw)
  To: devel

Господа,
в библиотеке 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-13 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13 20:07 [devel] I: python support in SourceAnalyzer Igor Vlasenko

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