Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14964
| From | Dmitry Shachnev <mitya57@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: #!/usr/bin/python3 vs virtualenv |
| Date | 2023-03-03 21:50 +0100 |
| Message-ID | <G5kvM-9Rly-3@gated-at.bofh.it> (permalink) |
| References | <G5fw5-9OsW-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi all, On Fri, Mar 03, 2023 at 04:10:50PM +0100, Marc Glisse wrote: > Hello, > > I recently reported > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032283 , and Dmitry > suggested discussing it on this mailing list. > > Virtual environments work by adding some version of Python (possibly just a > symlink to the system one) at the beginning of PATH. Debian policy for > Python scripts is to use #!/usr/bin/python3 and **not** #!/usr/bin/env > python3, so they are not affected. > > I think there are 2 types of Python scripts. The first type is applications > for end users, like hg or calibre (it is possible that the existence of > plugins makes my choice of examples a bad one). If I have some strange > Python virtual environment active, I am happy that the Debian policy > prevents the virtual environment from breaking those applications (although > I may still be able to break them with PYTHONPATH). I want to add that this concern applies to Sphinx too. Newer versions of its dependencies (e.g. docutils or jinja2) can easily break Sphinx. As well as incompatible versions of some Sphinx extensions installed from PyPI. -- Dmitry Shachnev
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
#!/usr/bin/python3 vs virtualenv Marc Glisse <marc.glisse@inria.fr> - 2023-03-03 16:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2023-03-03 19:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 20:20 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-03 21:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 21:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-03 22:30 +0100
Re: #!/usr/bin/python3 vs virtualenv Jeremy Stanley <fungi@yuggoth.org> - 2023-03-03 22:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Julian Gilbey <julian@d-and-j.net> - 2023-03-05 11:50 +0100
Re: #!/usr/bin/python3 vs virtualenv Jorge Moraleda <jorge.moraleda@gmail.com> - 2023-03-05 13:00 +0100
Re: #!/usr/bin/python3 vs virtualenv Stefano Rivera <stefanor@debian.org> - 2023-03-09 23:40 +0100
Re: #!/usr/bin/python3 vs virtualenv Marc Glisse <marc.glisse@inria.fr> - 2023-03-05 14:20 +0100
Re: #!/usr/bin/python3 vs virtualenv Dmitry Shachnev <mitya57@debian.org> - 2023-03-03 21:50 +0100
csiph-web