All of lore.kernel.org
 help / color / mirror / Atom feed
* [cocci] Cannot infer Python version: when no /usr/bin/python symlink is found (resend)
@ 2021-10-29 19:06 Luis Chamberlain
  2021-10-29 20:16 ` Julia Lawall
  2021-11-05 19:21 ` Thierry Martinez
  0 siblings, 2 replies; 4+ messages in thread
From: Luis Chamberlain @ 2021-10-29 19:06 UTC (permalink / raw)
  To: cocci; +Cc: Luis Chamberlain

Debian and OpenSUSE Tumblweed no longer have the /usr/bin/python
symlink, at least this is explained and spelled out on the Debian
Python Policy [0]. This guideline specifically requests that scripts
do not use `/usr/bin/env`, do not use `/usr/bin/python` and instead
use the exact version desired.

When running coccinelle on a system without this /usr/bin/python
symlink Coccinelle will complain when using a python script on a cocci
file:

Cannot infer Python version

Fixing this is just to create the symlink, but I *really* don't want
to do that. And so I think we may need to support:

script:python3
initialize:python3

Maybe it makes sense then to always look for python2 if a version is
not specified, and if that does not exist look for python3 as new
systems may not have python2.

[0] https://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html#s-interpreter

  Luis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-05 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-29 19:06 [cocci] Cannot infer Python version: when no /usr/bin/python symlink is found (resend) Luis Chamberlain
2021-10-29 20:16 ` Julia Lawall
2021-11-05 19:21 ` Thierry Martinez
2021-11-05 21:54   ` Luis Chamberlain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.