devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] forbidden requires: python-base
Date: Mon, 14 Nov 2022 11:35:28 +0400
Message-ID: <20221114073528.wikxhpefllho2zbb@titan.localdomain> (raw)
In-Reply-To: <955281668410573@mail.yandex.ru>

On Mon, Nov 14, 2022 at 10:31:57AM +0300, Den hilltracer wrote:
>    find . -type f ! -path '*/\.*' -name '*.py' -exec sed \
>         -i -e 's/\/usr\/bin\/env python.*/\/usr\/bin\/env python2/g' -e
>    's/\/bin\/python.*/\/bin\/python2/g' {} + \
>    -or ! -path '*/\.*' -type f ! -name '*.*' -exec sed \
>         -i 's/\/usr\/bin\/env python.*/\/usr\/bin\/env python2/g' {} +

Если предполагается эти скрипты запускать только системным питоном,
возможно, имеет смысл и здесь заменять шебанг на #!/usr/bin/python2.

-- 
  wbr,
    iv m.


      parent reply	other threads:[~2022-11-14  7:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 11:24 ` Антон Мидюков
2022-11-11 12:01 ` Ivan A. Melnikov
2022-11-11 12:07   ` Dmitry V. Levin
2022-11-14  7:35       ` Ivan A. Melnikov [this message]

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=20221114073528.wikxhpefllho2zbb@titan.localdomain \
    --to=iv@altlinux.org \
    --cc=devel-newbies@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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git