bugpyconfigure - Bugs: bug #57115, Support for --embed in Python...

 
 

bug #57115: Support for --embed in Python >= 3.8

Submitter:  None
Submitted:  Fri 25 Oct 2019 03:30:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 25 Oct 2019 03:30:31 PM UTC, original submission:  

Hi,

In Python 3.8, modules are no longer linked with libpython3.8 by default. Yet, codes that embed Python still need to link with it.

To cope with that, python3.8-configure introduces new option --embed. This option should be used by codes that really intend to link with libpythonx.y.

The attached patch adds support for this in python.m4 (which I use in another project).

When configuring a project that embeds Pythons, use:
 PC_PYTHON_PROG_PYTHON_CONFIG([],[yes])
before calling any of the PC_PYTHON_CHECK_* macros.

The second argument is optional, so nothing changes for code that does not try to embed Python.

This patch is backward compatible with Python <= 3.7.

Kind regards, Thibaut.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #47739:  pyconfigure-python38.diff added by None (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2019-10-25 None Attached File- Added pyconfigure-python38.diff, #47739

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code