Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick more upstream fixes to support building against python 3.8 #203

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

igorpeshansky
Copy link
Member

The commits were adapted to fit the separate Python 3 code from #201.

http://b/168508440

stratakis and others added 2 commits June 28, 2022 23:05
From Python 3.8 and onwards C extensions are no longer
linked to libpython so in order to embed python within
an application the --embed flag needs to be added to
python3-config --libs. A fall back is provided as the
command will error out on previous python versions.

References: https://bugs.python.org/issue36721
Since Python 3.8 --embed flag needs to be provided to python-config to embed python.
Reference: https://bugs.python.org/issue36721

This was partially addressed in collectd#3170 but only fixed building and not linking with python.
@igorpeshansky igorpeshansky requested review from a team and qingling128 and removed request for a team June 29, 2022 03:10
@google-cla
Copy link

google-cla bot commented Jun 29, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@igorpeshansky igorpeshansky merged commit 9e7c24c into stackdriver-agent-5.8.1 Jun 29, 2022
@igorpeshansky igorpeshansky deleted the igorpeshansky-python3-support branch June 29, 2022 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants