[SERVER-75574] Stop using deprecated python distutils package Created: 02/Apr/23 Updated: 29/Oct/23 Resolved: 31/Aug/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Steve Gross |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Development Platform
|
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Sharding EMEA 2023-04-03 |
| Participants: |
| Description |
|
ptyhon distutils package has been deprecated (pep-0632). Currently it seems we are using it only for the 'spawn' module and in particular for the find_executable function:
We should be able to easily replace distutils.spawn.find_executable with shutils.which. |
| Comments |
| Comment by Githook User [ 31/Aug/23 ] |
|
Author: {'name': 'Steve Gross', 'email': 'steve.gross@mongodb.com', 'username': 'stevegrossmongodb'}Message: |
| Comment by Githook User [ 29/Aug/23 ] |
|
Author: {'name': 'Steve Gross', 'email': 'steve.gross@mongodb.com', 'username': 'stevegrossmongodb'}Message: |
| Comment by Steve Gross [ 04/Jul/23 ] |
|
Testing out the PR, and fixing up small issues. |
| Comment by Steve Gross [ 03/Jul/23 ] |
|
Note: The latest search results show we're down to 3 files:
|
| Comment by Steve Gross [ 03/Jul/23 ] |
|
Starting to look into this today |
| Comment by Shane Harvey [ 25/Apr/23 ] |
|
Note that distutils has been removed in Python 3.12 which will be released October 2023. |