Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14971

Re: #!/usr/bin/python3 vs virtualenv

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Marc Glisse <marc.glisse@inria.fr>
Newsgroups linux.debian.maint.python
Subject Re: #!/usr/bin/python3 vs virtualenv
Date Sun, 05 Mar 2023 14:20:01 +0100
Message-ID <G5Wrn-aiuq-1@gated-at.bofh.it> (permalink)
References <G5fw5-9OsW-3@gated-at.bofh.it> <G5iDD-9Qef-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Mar 5 13:18:41 2023
Old-Return-Path <marc.glisse@inria.fr>
X-Amavis-Spam-Status No, score=-2.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .inria. - helo: .mail2-relais-roc.national.inria. - helo-domain: .inria.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
Authentication-Results mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=marc.glisse@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr
X-Ironport-Av E=Sophos;i="5.98,235,1673910000"; d="scan'208";a="95471110"
MIME-Version 1.0
Content-Type text/plain; format=flowed; charset=US-ASCII
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20875
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/ce9d8632-0f98-586e-ae74-c45ff60a306c@inria.fr
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 5 Mar 2023 14:03:10 +0100 (CET)
X-Original-Message-ID <ce9d8632-0f98-586e-ae74-c45ff60a306c@inria.fr>
X-Original-References <1c48b573-b3cd-0eb8-4493-752dd9d0c3fa@inria.fr> <9193D789-A0A4-4883-B2AC-3CBFF1ED3444@ubuntu.com>
Xref csiph.com linux.debian.maint.python:14971

Show key headers only | View raw


(sorry for replying to a random message, I am not subscribed to the list)

I don't use `sudo pip`, too risky. I used to use pip to install packages 
with the implicit --user option (for things not available via apt). And I 
am aware of --break-system-packages, I used it the first time pip 
complained about an externally managed environment so I could keep working 
as before.

I decided to follow the recommandations and use a virtual environment. 
And, in order to benefit from the packaging done in Debian, I thought I 
could use --system-site-packages and restrict pip to a few things that 
Debian does not provide.

I now see that this was too optimistic. For now I'll use `python -m 
sphinx.cmd.build` as a workaround, but the next time I hit some issue I'll 
probably end up using conda, like everyone else. It just feels sad to see 
all the effort done in packaging Python things in Debian end with the 
recommendation not to use them :-(

Thank you all for the advice,

-- 
Marc Glisse

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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