Deutsch English Français Italiano |
<mailman.29.1711642229.3468.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: "Olivier B." <perso.olivier.barthelemy@gmail.com> Newsgroups: comp.lang.python Subject: Making 'compiled' modules work with multiple python versions on Linux Date: Thu, 28 Mar 2024 16:07:04 +0100 Lines: 13 Message-ID: <mailman.29.1711642229.3468.python-list@python.org> References: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: news.uni-berlin.de nPDBNL+yT68vFWLz+y14TAePQo2HSrhCChsya9x1Z7OA== Cancel-Lock: sha1:qMdNm0Xuq/nRPqb0ONqXK7zmTz4= sha256:xruF1owXyT6mce+4VzTmIL6rQayALIKLqTZT9Lvp+nw= 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=LpJZGn9T; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:python': 0.06; 'linux,': 0.07; 'api,': 0.09; 'c++': 0.16; 'received:mail- ed1-x530.google.com': 0.16; 'subject:compiled': 0.16; 'subject:modules': 0.16; 'python': 0.16; 'api': 0.17; 'instead': 0.17; 'uses': 0.19; 'to:addr:python-list': 0.20; 'code': 0.23; 'seems': 0.26; 'module': 0.31; 'modified': 0.32; 'message- id:@mail.gmail.com': 0.32; 'but': 0.32; 'windows': 0.34; 'same': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'use': 0.39; 'limited': 0.62; 'linking': 0.76; 'effect,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711638435; x=1712243235; darn=python.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yxeKXs2Ssy+ruBFdxWX6vtwvLb9JPF0HqpUkkGsWLHg=; b=LpJZGn9T0dtnXGCepKl0HM5dcIeRfGDKcYr0zZKhDfZDUWRVCTl/xtioa2dPxlvCPb dyXZScyK0gkTPMSOMvNw7yirk+Ta/Ds9onNm6dOb79MC6F29dy2g8X2ql2yB5sgGEevI xzLShbS080RUbda3ynodoxA5S2ahZhE0JYSwfA8twdvjdQCuu4zAh+pSV0HQQBcl4m/V +mendBkCbdzaD75O+BXre/UeoNm0RxMvf1HTkB7+5Qb5WM9443auRzkIjcI7pJjk1b0M 9ooiZE0eJfbzkngNhg8zfE1MS9UQTIpV0xkxi+yt6I9OT01x8TtycBxJLNN7gax88ojT HMmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711638435; x=1712243235; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yxeKXs2Ssy+ruBFdxWX6vtwvLb9JPF0HqpUkkGsWLHg=; b=iM+1kHHpM+AgWVUPlKabfKa4Hiy1IvoEL/7Rn7Q2Z0nNkMqnt1CdhTHxNmL1BjkhRj XsGGUM2aiG1Q0MpnP74sHjD7vtANqoS7yGJ7Qx7N4nM7U1/vzXBndTr34L0h5Of0T5sX VOZwcSSVKxhgQbPiNmhy2lJs87WRcBTuVo8bicJStiU9x/bE/wr0DNGsqe7zOtGt8AUY X/9kr5Wqarg7M+BPdtVSDM6uQAXSDy74gvUbkaRqsyWLGGnZqrJE2H1MedkLnFWPuQ/S rQEIjJSRLpS8/9lBlGXq9fHoK4czlIGIplsvMSI8NOwcqG9SEMXm/yY1ePjLW9QgwSMm eeeA== X-Gm-Message-State: AOJu0YwEeZzAwS6iqiftNPyoK8VJy17KeKqRvKrJcJsVGYkRn+ruab8d NXfM5M+etyJb8zEUu1lBSm+1g2PPcB7GEH1ub9TC2ctEGgQXXZ5Ybj42MjqLA6zejecDL1rNiX1 I4pT8AAFAIWIcxoK7Cqsv4x8ODaizATMAsDc= X-Google-Smtp-Source: AGHT+IHtUAzMCAE+nvDYGBaaUv7zKagls2gO+X7U1zgHBC9hBNIDSImM3+gRqCWGvToMWWVlz8MBblsbIs1JFTuAoh0= X-Received: by 2002:a50:9b54:0:b0:56b:dfe7:cc6d with SMTP id a20-20020a509b54000000b0056bdfe7cc6dmr2593135edj.10.1711638435164; Thu, 28 Mar 2024 08:07:15 -0700 (PDT) X-Mailman-Approved-At: Thu, 28 Mar 2024 12:10:28 -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: <CA+cSArj6HQ=ULfoa2R7Jwc_M-8k7mBbTHU6Qsm5BsyzhVFwBeQ@mail.gmail.com> Bytes: 4733 I have a python module that includes some C++ code that links with the Python C API I have now modified the c++ code so that it only uses the Limited API, and linked with python3.lib instead of python311.lib. I can now use that python module with different python versions on Windows 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?