ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Morozov <alex-altlinux@idisys.iae.nsk.su>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] python-module-pygtk, -pygnome и иже с ними
Date: Tue, 15 Mar 2005 20:02:19 +0600
Message-ID: <20050315140219.GE2741@pyro.hopawar.private.net> (raw)
In-Reply-To: <20050314130132.GB7298@immo.ru>

[-- Attachment #1: Type: text/plain, Size: 938 bytes --]

On Mon, Mar 14, 2005 at 04:01:32PM +0300, Alexey I. Froloff wrote:
> Вообще, с питоньими зависимостями творится какой-то бардак в
> раойне python-strict/python-relaxed :-/
Вязаться на python-strict идеологически неправильно. Но это происходит
(за каким-то хреном), когда встречается скрипт, в котором написано

#!/usr/bin/python

Мне кажется до сих пор, что Андрей в этом месте перегнул, гхм, палку.

Впрочем, всегда есть возможность сделать

%__subst '1 s/^#!.*\/python\([ '$'\t''].*\)\?$/#!\/usr\/bin\/env python%__python_version\1/' %buildroot%_bindir/*

Для тех, кому кажется, что программистов подобных one-liners надо при
жизни готовить к Вечности, которую они проведут в неблагоприятных
климатических условиях, поясню, что данный one-liner
меняет строчку указания интерпретатора с
/usr/bin/python [<опциональные параметры>]

на

/usr/bin/env pythonX.Y [<эти самые параметры>]

В общем, все просто :-).



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-03-15 14:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-14 11:21 Alexey Rusakov
2005-03-14 11:31 ` Yuri N. Sedunov
2005-03-14 12:38   ` Vitaly Lipatov
2005-03-14 13:01     ` Alexey I. Froloff
2005-03-15 14:02       ` Alexey Morozov [this message]
2005-03-15 14:24         ` Alexey I. Froloff
2005-03-15 16:28           ` Alexey Morozov
2005-03-14 16:04     ` Alexey Rusakov
2005-03-14 16:11       ` Yuri N. Sedunov

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=20050315140219.GE2741@pyro.hopawar.private.net \
    --to=alex-altlinux@idisys.iae.nsk.su \
    --cc=devel@altlinux.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