thrift
thrift copied to clipboard
python tests: support setuptools >=62.1 libpaths
The distutils bundled with setuptools >= 62.1.0 changes its platform specifier format in paths (https://github.com/pypa/setuptools/pull/3258/files#diff-769cc4d175b0f8a3dbcfdb24c7d29e8a468ab6931abecf54c868cb4d5d28e9a1). This causes the tests to fail without this modification. Also allow the older style for backwards compatibility.
- [ ] Did you create an Apache Jira ticket? (not required for trivial changes)
- [ ] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
- [x] Did you squash your changes to a single commit? (not required, but preferred)
- [x] Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
- [ ] If your change does not involve any code, include
[skip ci]anywhere in the commit message to free up build resources.