-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade the Agent build to embed Python 3.8.1 #4464
Conversation
We've a bug while building python3 due to this: - pypa/wheel#303 We need pip3 >= `19.2.3`.
…nto remeh/python-3.8
…-tools. pip >= 19.3 support landed in pip-tools 4.2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe python 3.8 introduced some changes to the C-API (should def be non-breaking), but let's make sure the RTLoader is behaving as expected! :)
Also, though the pip-tools
and setuptools
version bumps are welcome, can we do those in a separate PR? Or are those changes required by python3.8?
@truthbk Yep it's needed for the build with Python 3.8 to succeed, the reason is linked in the PR description, I'm testing the build this morning :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's roll this out for 6.16 6.17 (my bad!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs review
Co-Authored-By: ruthnaebeck <[email protected]>
Co-Authored-By: ruthnaebeck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, mostly nits except the one on the package scripts.
Overall LGTM! Let's make sure we start testing this as soon as 7.17.0 is out
Codecov Report
@@ Coverage Diff @@
## master #4464 +/- ##
==========================================
+ Coverage 52.35% 52.52% +0.17%
==========================================
Files 709 710 +1
Lines 51004 51247 +243
==========================================
+ Hits 26702 26919 +217
- Misses 22722 22752 +30
+ Partials 1580 1576 -4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One last nit on the release note, feel free to merge once addressed
Co-Authored-By: Olivier Vielpeau <[email protected]>
- | | ||
Upgrade embedded Python 3 to 3.8.1. Link to Python 3.8 changelog: https://docs.python.org/3/whatsnew/3.8.html | ||
|
||
Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Agent v7 will ship Python 3.8.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's be either super explicit (see below):
Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Agent v7 will ship Python 3.8.1 | |
Note that the Python 2 version shipped in Agent v6 continues to be version 2.7.17 (unchanged). Non-containerized packages of Agent v6 also ship Python 3 at version 3.8.1, and Agent v7 only ships Python 3.8.1. |
or we can simply remove the Agent v7 will ship Python 3.8.1
sentence, since I feel it can be interpreted as only Agent v7 ships Python 3.8.1
. Up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough!
What does this PR do?
Upgrade the Agent build to embed Python 3.8.1
I had to upgrade:
pip
to19.2.3
due to this: Don't append "m" ABI flag in Python 3.8 pypa/wheel#303wheel
to0.34.1
to properly supports ARM buildspip-tools
to support the new pip versionpywin32
to227
see Upgrade pywin32 to 227 integrations-core#5036cryptography
to2.8
see Upgrade cryptography to 2.8 integrations-core#5047Motivation
Provide the Agent with the latest Python 3 available.