Message407821
There are two ways to develop against a Python.framework on MacOS:
1. Use the regular Unix pattern with "#include "Python.h", using compiler flags to select the right headers and libraries.
2. Using the native framework pattern with "#import <Python/Python.h>" and "-framework Python"
Both works, but the latter has the disadvantage of loosing control over which version of Python is used when multiple versions are installed. The version is selected by the "Current" link in the framework, which is overwritten to point to whatever version was last installed or updated.
IMHO we should document this pitfall in the C API documentation. |
|
Date |
User |
Action |
Args |
2021-12-06 15:00:33 | ronaldoussoren | set | recipients:
+ ronaldoussoren, ned.deily, docs@python |
2021-12-06 15:00:33 | ronaldoussoren | set | messageid: <1638802833.35.0.414122287903.issue45998@roundup.psfhosted.org> |
2021-12-06 15:00:33 | ronaldoussoren | link | issue45998 messages |
2021-12-06 15:00:33 | ronaldoussoren | create | |
|