Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

America has been discovered before, but it has always been hushed up. -- Oscar Wilde


devel / comp.lang.python / Re: Python and Ubuntu versions

SubjectAuthor
o Re: Python and Ubuntu versionsCameron Simpson

1
Re: Python and Ubuntu versions

<mailman.243.1627033617.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14264&group=comp.lang.python#14264

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs...@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: Python and Ubuntu versions
Date: Fri, 23 Jul 2021 15:17:59 +1000
Lines: 38
Message-ID: <mailman.243.1627033617.4164.python-list@python.org>
References: <CABD5YeHK+ts3Zcmt6oYATV=wRUSmRpAqNCqHFQOaiR=YHANfEw@mail.gmail.com>
<YPpRB3ABEJrW3iec@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de lWJNbKlkuknb6/Y3N+4m+ApMH8H944CS8hC/3vPSTflQ==
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.012
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python?': 0.03; '3.8':
0.05; 'app.': 0.07; 'django': 0.07; 'ubuntu': 0.09; 'upgrading':
0.09; 'steps': 0.10; 'cheers,': 0.10; 'subject:Python': 0.12;
"can't": 0.14; '18.04': 0.16; 'cameron': 0.16; 'directory,': 0.16;
'from:addr:cs': 0.16; 'from:addr:cskk.id.au': 0.16;
'from:name:cameron simpson': 0.16; 'invoke': 0.16; 'machine?':
0.16; 'message-id:@cskk.homeip.net': 0.16; 'prefix': 0.16;
'received:10.10': 0.16; 'required.': 0.16; 'simpson': 0.16;
'unprivileged': 0.16; 'virtualenv': 0.16; 'wrote:': 0.16;
'python': 0.16; 'install': 0.22; 'version': 0.22; 'to:addr:python-
list': 0.23; 'code': 0.24; 'this?': 0.28; 'header:User-Agent:1':
0.31; 'it,': 0.31; 'stuff': 0.31; 'but': 0.31; "i'm": 0.32;
'minimal': 0.32; 'to:name:python': 0.32; 'using': 0.33; 'server':
0.33; 'header:In-Reply-To:1': 0.33; 'same': 0.34; 'one.': 0.35;
'changes': 0.37; 'currently': 0.37; 'read': 0.38; 'use': 0.38;
'source': 0.38; 'build': 0.40; 'example': 0.40; 'directory': 0.40;
'all.': 0.40; 'built': 0.40; 'forward': 0.61; 'me.': 0.62;
'header:Received:6': 0.63; 'received:userid': 0.64; 'your': 0.64;
'personal': 0.65; 'damage': 0.66; 'required': 0.66; 'skip:1 20':
0.67; 'change.': 0.69; 'owned': 0.69; 'upgrade': 0.71;
'production': 0.71; 'risk': 0.72; 'received:172.16': 0.77;
'breaking': 0.78; 'install.': 0.84; 'postgresql': 0.84; 'subtle':
0.84; 'upgraded': 0.84; 'avoiding': 0.91; 'tend': 0.91
X-RG-Spam: Unknown
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvtddrfeejgdeklecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfupfevtfgpvffgnffuvffttedpqfgfvfenuceurghilhhouhhtmecugedttdenucenucfjughrpeffhffvuffkgggtugfgjggffhesthekredttderjeenucfhrhhomhepvegrmhgvrhhonhcuufhimhhpshhonhcuoegtshestghskhhkrdhiugdrrghuqeenucggtffrrghtthgvrhhnpeektdejheekfedtveevieetkeefledukefgveeltdffteeugefgtddtgeevgedvjeenucfkphepuddrudeggedrvdegtddrieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepsghorhhgrdgtshhkkhdrhhhomhgvihhprdhnvghtpdhinhgvthepuddrudeggedrvdegtddrieelpdhmrghilhhfrhhomhepoegtrghmvghrohhnsegtshhkkhdrihgurdgruhequceuqfffjgepkeeukffvoffkoffgpdhrtghpthhtohepoehphihthhhonhdqlhhishhtsehphihthhhonhdrohhrgheq
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-RG-VS-CLASS: clean
Mail-Followup-To: Python <python-list@python.org>
Content-Disposition: inline
In-Reply-To: <CABD5YeHK+ts3Zcmt6oYATV=wRUSmRpAqNCqHFQOaiR=YHANfEw@mail.gmail.com>
User-Agent: Mutt/2.0.3 (2020-12-04)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <YPpRB3ABEJrW3iec@cskk.homeip.net>
X-Mailman-Original-References: <CABD5YeHK+ts3Zcmt6oYATV=wRUSmRpAqNCqHFQOaiR=YHANfEw@mail.gmail.com>
 by: Cameron Simpson - Fri, 23 Jul 2021 05:17 UTC

On 23Jul2021 07:54, אורי <uri@speedy.net> wrote:
>I have a production server with Ubuntu 18.04 LTS (currently upgraded to
>Ubuntu 18.04.5 LTS) and I use Python in virtualenv - currently Python
>3.6.9. I'm using Django and I read that from Django 4.0, a minimal version
>of Python 3.8 will be required. I would like to know how I use the latest
>version of Python (3.10 or 3.9) with my production server - do I have to
>reinstall a new server with the latest Ubuntu LTS version? Or do I have to
>upgrade my current server's Ubuntu version by upgrading the same machine?
>Or should I keep the Ubuntu version and only upgrade Python? I'm also using
>other software such as PostgreSQL which is currently psql (PostgreSQL)
>10.17 (Ubuntu 10.17-0ubuntu0.18.04.1). Should I upgrade this too? And what
>is the risk that things will not work after I upgrade this?

I would install a totally separate Python from the vendor (ubunut)
provided one. This prevents subtle changes to what the OS has been
tested against.

You can built Python from source and install it, for example with a
prefix like /usr/local/ptyhon-3.10. That gets you a different version;
nothing in the OS stuff will try to use it, but you use it to invoke
your Django app.

Both Python and PostgreSQL tend to be very forward compatible - your
code should not need to change.

By making a separate install you're avoiding breaking OS stuff.

Do the build and install as yourself. I usually do the install step by
making the install directory as root, then chowning it to me. Then you
can do the install as you - this has the advantage the you're
unprivileged and can't accidentally damage the OS install.

If you're just doing this for personal use then you can of course just
install it in your own home directory, not root owned steps required at
all.

Cheers,
Cameron Simpson <cs@cskk.id.au>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor