Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Economics is extremely useful as a form of employment for economists. -- John Kenneth Galbraith


devel / comp.lang.python / Re: Making 'compiled' modules work with multiple python versions on Linux

SubjectAuthor
o Re: Making 'compiled' modules work with multiple python versions on LinuxLeft Right

1
Re: Making 'compiled' modules work with multiple python versions on Linux

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: olegsivokon@gmail.com (Left Right)
Newsgroups: comp.lang.python
Subject: Re: Making 'compiled' modules work with multiple python versions on
Linux
Date: Fri, 29 Mar 2024 16:37:06 +0100
Lines: 46
Message-ID: <mailman.47.1711991498.3468.python-list@python.org>
References: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com>
<72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
<CAJQBtgmb=vSW+PoBHHzefwf2OZLVRrokz2o7qJ5TORYB5QUGaQ@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 aq6yskFAx8xA7twx8jOH7gZc/VpGJuz0P6BLGrIgb0Pw==
Cancel-Lock: sha1:Uo4cIy5fVoHMzHKd9kaeAutMKRM= sha256:vGoKGUJS27zL/RFG5RF+RBHqPDqF2DrOuEJ8dSceYOg=
Return-Path: <olegsivokon@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=hmTSatLA;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:python': 0.06;
'linux,': 0.07; 'mar': 0.07; 'translate': 0.07; 'python.': 0.08;
'linux': 0.09; 'something,': 0.09; 'url:mailman': 0.15; 'that.':
0.15; '2024': 0.16; 'barry': 0.16; 'easier.': 0.16; 'missed':
0.16; 'packages,': 0.16; 'recall.': 0.16; 'received:mail-
ua1-x936.google.com': 0.16; 'sounds': 0.16; 'subject:compiled':
0.16; 'subject:modules': 0.16; 'usable': 0.16; 'wrote:': 0.16;
'python': 0.16; 'api': 0.17; 'instead': 0.17; 'bug': 0.19;
'to:addr:python-list': 0.20; 'fri,': 0.22; 'version': 0.23; "i'd":
0.24; 'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24':
0.25; 'actual': 0.25; 'url:listinfo': 0.25; 'url-ip:188.166/16':
0.25; 'seems': 0.26; 'binary': 0.26; 'library': 0.26; 'practices':
0.26; 'done': 0.28; 'expect': 0.28; 'sense': 0.28; 'this?': 0.29;
'effect': 0.31; 'looked': 0.31; 'url-ip:188/8': 0.31; 'python-
list': 0.32; 'message-id:@mail.gmail.com': 0.32; 'unless': 0.32;
'but': 0.32; 'there': 0.33; 'windows': 0.34; 'same': 0.34;
'package': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'trying': 0.35;
'from:addr:gmail.com': 0.35; "it's": 0.37; 'though': 0.37;
'reports': 0.40; 'want': 0.40; 'limited': 0.62; 'your': 0.64;
'guaranteed': 0.67; 'per': 0.68; 'matter': 0.68; 'virtually':
0.69; 'linking': 0.76; 'effect,': 0.84; 'know?': 0.84; 'weird':
0.84; 'pain': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1711726637; x=1712331437; darn=python.org;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=+BaarIWUW68mKWfrfgEgnz8veuDBhIG3G4Uf5HMpPzk=;
b=hmTSatLA4m7KP0jQrfgyn/82OfITvM4yFcNEbR3pj+lIxjoyqE+TCcZkChWfRBxQNL
GumvH7XRBibxybVtha0uUk9d/sEMNH9g1vU7U3WhnFPdkMcby7caJZrpBsfT3qzk+ckR
K0nZqYn767ZGFdREZrqRxT/JVmKJJwXdtFSEFgNdeUVsSOu+Jfy3fTYyhMw2KWgG7vRt
+CA+bmbFsO4BCvNfX8Aw/2MSa7+B3+5vUiZSk94AbVxyKgzdF51XZ9iAnedtwro9laIw
74aP2wuSIA0PJj+Aiif1l5ryCpJmn9ONx1LmkeLlnPGwzJ1YkOEm/BdXzCuqowNp1JPx
TtqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1711726637; x=1712331437;
h=content-transfer-encoding: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=+BaarIWUW68mKWfrfgEgnz8veuDBhIG3G4Uf5HMpPzk=;
b=qP7X+AUWj5C/D48UdmmPpvGwDKSVpCPYBmi4YDqf2piHgUr5Ulx4QHTWnKZuL6xAlt
sHWh8v6qLcqah2dhkifsfiur7w3dgTDHu44ZuIicPX9omFqErdmg/Cw/rcJZ9x/SI4R2
2X8J0BwR03RGB3DYy8ZgTnN4mDqKVxnUZwcYV+2yj/rJL5ViCGeXb6a5zvneA5/dOIkh
4AO1K+bCIQ85YpmglHK5Y6z+95pCTf4Lf2xMK5DgbFR19YHvNXKCX9az/qxycZEiQtFH
KWFyoQd2hoPpqwi0rnuVtkZEaU99EGvryu73pjFwRp9/+MdtcL4edhzvulAs+qv0k1hL
KV5w==
X-Gm-Message-State: AOJu0Yyr95cKhVzwfL4kc8++qu8KJary5ZO185RH5wtQLGgBRy/1mvZI
UvYYHj4KCDutzYPS8GWFDzhGWHTSrX6XE4hKSbgAMRxt9e5bwDJRmURBS10LlzQm3+0CxNRhMJm
NDxXqTcfIL74gim9BfbIb7ZB9LJzbFVeU
X-Google-Smtp-Source: AGHT+IGD1bX6LEYn2tOuRn4IBJfKeBj4ocg1yN7EmkVP6F6iGXlCMFhZ5fpCo1e91JmV+T34XtntzGYHiyiQR7clAno=
X-Received: by 2002:a05:6122:1788:b0:4d4:11a6:a4ff with SMTP id
o8-20020a056122178800b004d411a6a4ffmr3044400vkf.3.1711726637331; Fri, 29 Mar
2024 08:37:17 -0700 (PDT)
In-Reply-To: <72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
X-Mailman-Approved-At: Mon, 01 Apr 2024 13:11:37 -0400
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: <CAJQBtgmb=vSW+PoBHHzefwf2OZLVRrokz2o7qJ5TORYB5QUGaQ@mail.gmail.com>
X-Mailman-Original-References: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com>
<72BBD020-130F-4026-9A53-F757C2576654@barrys-emacs.org>
 by: Left Right - Fri, 29 Mar 2024 15:37 UTC

It sounds weird that symbols from Limited API are _missing_ (I'd
expect them to be there no matter what library version you link with).
But, I haven't done this myself, so, what do I know? It would help
though to see the actual error.

That aside: why do you want to do this? One side effect of doing what
you want will be the "weird" name of your wheel archive. Weird in a
sense that virtually nobody does that. And when virtually nobody does
something, you are almost guaranteed to be the first to find bugs, and
then be the one whose bug reports are shoved into the backlog and
never looked at again.

You, kind of, are already walking into the world of pain trying to
make Python binary packages, and then you also want them to be
cross-platform, and then you want them to be usable by different
versions of Python... Unless it's for your own amusement, I'd just
have a package per version of Python. Maintenance-wise it's going to
be a lot easier.

On Fri, Mar 29, 2024 at 10:13 AM Barry via Python-list
<python-list@python.org> wrote:
>
>
>
> > On 28 Mar 2024, at 16:13, Olivier B. via Python-list <python-list@python.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
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor