linux-announce AT lists.psi.ch
Subject: Linux Mailing List
List archive
- From: "Konrad Bucheli (PSI)" <konrad.bucheli AT psi.ch>
- To: linux-announce AT lists.psi.ch
- Subject: [[Linux-announce] ] Configure your default Python in Hiera
- Date: Wed, 5 Jun 2024 15:17:18 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 20.250.75.252) smtp.rcpttodomain=lists.psi.ch smtp.mailfrom=psi.ch; dmarc=pass (p=none sp=none pct=100) action=none header.from=psi.ch; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KIoAgSL9uu/pd5TSHn1mML+WwTHbYpxRTU+0tjWGy/k=; b=GUNn27Lkc1XvaaxmCT15A2dxAlMaJ87Pl13Ln/76VDt34nBJa7tovQAcygFslwTyA4xlvRVQO2d8kt/ciV/qe9le7syuWH3RUdWrQbALvENO7JiWY86qe9gRe3EVtofxvgUgo+/83Oe0wxAbZ8UcmNrWm7xGwTYO6v53zgcIZl43Cn8gDErgr47hRjlmvFhbDtsW/Lv81VsAmt7aEtfW/WGGLCYPSQqmcIo3ZyHtq/PMqFbBjQCK1SYj4ElI8lZVoI9NvYFDD4JIWb0Wfq7R/NDHR9/4hac6hcOdt7O+KdGf8S/4CL0VUQnuVDODq9/5LzqqciARkl7/kddymQG0IA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DuRDjatuSKW2OCsGeWQ+sD/da9iin07bSQj7z7cDjpPT//cmwvXgqOabODoAn8uytJdz0rTPzi7o5bA8XQJIQ9VC/waLoZKHQCcqPbf92cbttpcnmaRhsTFAsoqcT9OfeuLaz/j2cF90DOQhMkBTSqWL9dpu7eQgdU/jHCfD4Ldl9iIE/CzFeSDlPDDxGjeRWUYg7DYJu92gl2exeStT/QlMCgT0iZ4IlFwNAcs+wadt1sMnAtV4/TMZ0XVRPPaWCdQiiUrWb93nsur3JZAKQKtu1cCbofwr5oc+Stfi8OJLT7/j9YrRG59+mkzZrUie4m/q8UuLBQYR6f9LEafvfQ==
- Authentication-results: mc1; iprev=pass (mail-switzerlandnorthazon11020002.outbound.protection.outlook.com) smtp.remote-ip=52.101.186.2; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=psi.ch header.s=selector2 header.a=rsa-sha256; dmarc=pass header.from=psi.ch
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
Dear Pythonistas
If you wish to define a certain version of Python to the default Python on your system and running
python
should just start it, then you might be interested to know that you default Python can be selected in Hiera:
https://linux.psi.ch/admin-guide/configuration/python.html
so Puppet will install the required packages and link the binaries accordingly.
Note that this is only available for RHEL8 and RHEL9 and only for the versions of Python supplied by Red Hat.
Note that for libraries you still need to install them the old way and the availability of packaged ones may vary depending on the Python version.
Cheers
Konrad
--
Paul Scherrer Institut
Konrad Bucheli
Linux Systems Engineer
Core Linux Research Services
Science IT Infrastructure and Services department (AWI)
OBBA/230
Forschungstrasse 111
5232 Villigen PSI
Switzerland
Phone: +41 56 310 27 24
konrad.bucheli AT psi.ch
www.psi.ch
- [[Linux-announce] ] Configure your default Python in Hiera, Konrad Bucheli (PSI), 06/05/2024
Archive powered by MHonArc 2.6.24.