ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@altlinux.org>
To: devel@lists.altlinux.org
Subject: [devel] python bootstrap vs python-module-sphinx (was: I: viy current schedule on perl, python, java)
Date: Sat, 14 Jan 2017 22:25:54 +0300
Message-ID: <20170114192553.GA28774@imap.altlinux.org> (raw)
In-Reply-To: <alpine.LFD.2.20.1701131909480.1300@imap.altlinux.org>

On Fri, Jan 13, 2017 at 07:19:03PM +0300, Ivan Zakharyaschev wrote:
> > Многие вещи, которые делал real@ с python-пакетами для меня
> > остаются загадкой.  Например, pickles подпакеты.
> Не знаю толком на счёт pickles, но вот что касается похожей
> штуки, т.е.  генерации документации -- я когда разбирался с
> циклами сборочных зависимостей и применял buildreq, обнаружил
> -- то она неправильно генерируется (иногда) из установленных в
> систему пакетов (предыдущей версии!).
> 
> Я запланировал, чтобы решить и проблему минимизации сборочных
> зависимостей (для массового обновления), и эту неправильность,
> собирать документацию отдельно. (И pickles, возможно.)

Вообще большая человеческая просьба: трогая спеки питоньих
модулей, зависящих по сборке от rpm-macros-sphinx, не лениться
добавлять

%def_with doc

и заворачивать генерацию/упаковку docs и pickles в %if_with doc
примерно таким макаром:

+%if_with doc
 %make_build -C docs html
 %make_build -C docs pickle
+%endif

...

+%if_with doc
 cp -fR docs/_build/pickle %buildroot%python_sitelibdir_noarch/jinja2/
+%endif

...

+%if_with doc
 %files doc
 %doc docs/_build/html/*
 
 %files pickles
 %dir %python_sitelibdir_noarch/jinja2
 %python_sitelibdir_noarch/jinja2/pickle
+%endif

(обоснование: именно with doc до сих пор по большей части и наблюдаю,
разнобой в стороны with docs или enable doc{,s} несколько огорчает)

http://git.altlinux.org/people/mike/packages/?p=python-module-jinja2.git;a=commitdiff;h=f3d01b09b0bc043e6efbda9004055b03c8128e09

или однострочниками вроде таких, если удобней:

-BuildRequires: ctags python-module-sphinx time
+BuildRequires: time
+
+%{?_with_doc:BuildRequires: ctags python-module-sphinx}

...

-make -C docs html
+%{?_with_doc:make -C docs html}

http://git.altlinux.org/people/mike/packages/?p=python-module-polib.git;a=commitdiff;h=5a21fffd7557b80a52df51f54427d98971aa603d

А то эта питонья гуща вокруг python-module-sphinx уже какое-то
вдребезги кружевное бельё напоминает при попытке забутстрапить...

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


  reply	other threads:[~2017-01-14 19:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12 14:43 [devel] I: viy current schedule on perl, python, java Igor Vlasenko
2017-01-12 16:00 ` Ivan Zakharyaschev
2017-01-12 17:20   ` Igor Vlasenko
2017-01-13  9:32     ` Ivan Zakharyaschev
2017-01-13 15:31       ` Igor Vlasenko
2017-01-13 15:57         ` Alexey Shabalin
2017-01-13 16:19           ` Ivan Zakharyaschev
2017-01-14 19:25             ` Michael Shigorin [this message]
2017-01-15 10:31               ` [devel] python bootstrap vs python-module-sphinx (was: I: viy current schedule on perl, python, java) Ivan Zakharyaschev
2017-01-13 21:03           ` [devel] I: viy current schedule on perl, python, java Igor Vlasenko
2017-01-18 13:35           ` Антон Мидюков
2017-01-18 17:47             ` Igor Vlasenko
2017-01-18 17:49               ` Igor Vlasenko
2017-04-28 17:15           ` Alexey Shabalin
2017-01-12 18:49 ` Alexey Shabalin
2017-01-12 20:01   ` Igor Vlasenko

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=20170114192553.GA28774@imap.altlinux.org \
    --to=mike@altlinux.org \
    --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