Deutsch   English   Français   Italiano  
<20240320120604.0000659d@yahoo.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: "Olivier B." <perso.olivier.barthelemy@gmail.com>
Newsgroups: comp.lang.python
Subject: Re: Making 'compiled' modules work with multiple python versions on
 Linux
Date: Fri, 29 Mar 2024 17:09:32 +0100
Lines: 33
Message-ID: <mailman.31.1711728585.3468.python-list@python.org>
References: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com>
 <72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
 <CA+cSAriYX3wzYUG1_9ejeA=EDnKeM-Vu0DtaWN+AEnbnawy8pA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de /c78golrbzu7Hfab3PnqjAPZjnCVWH/7xOEV9VRPbhTw==
Cancel-Lock: sha1:1Mha8CkhKJvbsAQVpWPa/yBULdo= sha256:Zi8cRFSd0F7azIV++xeZf/wAdRRWxIhsAkP0eeJJ2js=
Return-Path: <perso.olivier.barthelemy@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=gmail.com header.i=@gmail.com header.b=DICY6lPO;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:python': 0.06;
 'linux,': 0.07; 'mar': 0.07; 'translate': 0.07; 'cc:addr:python-
 list': 0.09; 'linux': 0.09; 'cc:no real name:2**0': 0.14; '2024':
 0.16; 'barry': 0.16; 'missed': 0.16; 'recall.': 0.16;
 'subject:compiled': 0.16; 'subject:modules': 0.16; 'wrote:': 0.16;
 'python': 0.16; 'api': 0.17; 'instead': 0.17;
 'cc:addr:python.org': 0.20; 'maybe': 0.22; 'cc:2**0': 0.25;
 'seems': 0.26; 'practices': 0.26; 'version.': 0.28; 'it,': 0.29;
 'module': 0.31; 'python-list': 0.32; 'message-id:@mail.gmail.com':
 0.32; 'but': 0.32; "i'll": 0.33; 'windows': 0.34; 'same': 0.34;
 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
 'from:addr:gmail.com': 0.35; 'built': 0.36; 'system,': 0.36;
 'could': 0.38; 'try': 0.40; 'should': 0.40; 'lack': 0.60;
 'physical': 0.60; 'load': 0.62; 'limited': 0.62; 'copy': 0.63;
 'look': 0.65; 'mars': 0.69; 'linking': 0.76; 'effect,': 0.84;
 'pointing': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711728584; x=1712333384; darn=python.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=tXK4M46viGh2xmLkYB0PPI0EyVIcjHIpWGica4JIyk0=;
 b=DICY6lPOl0ACTzw69cICsF/8evgXXTvVAN8UQlISQB9y55Sq7UN3KipIQSpXz2Qzaa
 yJ4VorKP5J55jlO0/br4tgqFJmTYhM7qI0XFFPrLU2LwR8eu/ozwwrxs4qN5eNZla0+8
 jrIxZLN4YMSEVxH9SZ2oRjmeq8vW+Ots3UwME7do+OH5ubC6hLsf6BpIiQKcoAr52sZD
 FpRhla4AQiGgtI1Z5C1lpox5HxO6NCXIZijqY2c9f5zj1giXgiEam9m/tfIoUXzywsi2
 1OA+/nQKMOLhl9O4hut76Wp9OMWRgI5NtdqotC8goFxpEsGHvzS026KPZuMzElZf7w4H
 MrIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711728584; x=1712333384;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=tXK4M46viGh2xmLkYB0PPI0EyVIcjHIpWGica4JIyk0=;
 b=sI3DLd2K3EPizJtdMJvijMXx9EeyNrquw/aFzLr6eEwJmcxnNSDLkxxhkoxNM/6MEe
 zrj8Ir8Jriz/DcRwajucN+Pl1yDqt1Vp5/CeZQQiUDKNWBki8liW9/MbD4dQhv9NqbwS
 bB3R4OOlIL2FDMjte4z2D4Lq7V1MI/t7IeYdRlSwQR+IZ8/YIvCOqXhrw5FZ87AJDIb2
 VqCpNmggFu5XisPbKvdw4Pq2BRqFyATzlLVmTXAh0FcHep1IDAWKJ1mCdWlf/bQTKNtf
 v4Xm9lMcS4k9EcW26geU5lIi1DcgvcSR0/8W/dtu8BpU30rlqk8Iz7585oC3Iw+ZGMdO
 PZVQ==
X-Gm-Message-State: AOJu0YxYqu8pI8JFmlplORIGCTi/WRKQTJ/2NmpgmHdF0t0cYodU9hN1
 ITTY5tSSqPgtPEtsA0kiwsJV01DetHsIV+kdbj+eb/DxqWWKdvK+MUIn4kjOsTAqsSS0ZFp7Wqy
 hupo0gAJLhSnyc0kFWV51+KrSdV5FHA3B
X-Google-Smtp-Source: AGHT+IGT3TBxIhtJwR8Y6V/JeBWGdxmQhBg+XJ5xCF+89JdByfbXsX/51b5noG83IKxSGAqq1Xuc02wC4moOBTSRiik=
X-Received: by 2002:a17:906:7c8d:b0:a4a:33e4:bcae with SMTP id
 w13-20020a1709067c8d00b00a4a33e4bcaemr1676080ejo.30.1711728583857; Fri, 29
 Mar 2024 09:09:43 -0700 (PDT)
In-Reply-To: <72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <CA+cSAriYX3wzYUG1_9ejeA=EDnKeM-Vu0DtaWN+AEnbnawy8pA@mail.gmail.com>
X-Mailman-Original-References: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com>
 <72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
Bytes: 6152

It is not a symlink on my system, where i built python myself, but a
15KB so file. But it seems to lack lots of python symbols.

Maybe what i should do is actually make libpython.so a physical copy
of libpyton311.so before linking to it, so now on any system the
module would look to load libpython.so, which could be pointing to any
version. I'll try that next

Le ven. 29 mars 2024 =C3=A0 10:10, Barry <barry@barrys-emacs.org> a =C3=A9c=
rit :
>
>
>
> > On 28 Mar 2024, at 16:13, Olivier B. via Python-list <python-list@pytho=
n.org> wrote:
> >
> > But on Linux, it seems that linking to libpython3.so instead of
> > libpython3.11.so.1.0 does not have the same effect, and results in
> > many unresolved python symbols at link time
> >
> > Is this functionality only available on Windows?
>
> Python limited API works on linux, but you do not link against the .so on=
 linux I recall.
>
> You will have missed that libpython3.so is a symlink to libpython3.11.so.=
10.
>
> Windows build practices do not translate one-to-one to linux, or macOS.
>
> Barry
>
>