[CXX-2694] Replace usage of deprecated distutils module in calc_release_version.py Created: 23/May/23  Updated: 28/Oct/23  Resolved: 01/Jun/23

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Task Priority: Unknown
Reporter: Roberto Sanchez Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones CDRIVER-4603 Replace usage of deprecated distutils... Closed
Related
related to MONGOCRYPT-566 Replace usage of deprecated distutils... Closed

 Description   

calc_release_version.py imports distutils.version.LooseVersion. The distutils module was deprecated in Python 3.10 and will be removed in Python 3.12. PEP 632 suggests setuptools as the modern alternative. PEP 386 also has some discussion about version parsing, which could be relevant.

Some related PRs migrating away from distutils:



 Comments   
Comment by Githook User [ 01/Jun/23 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: CXX-2694 use setuptools rather than distutils (deprecated) for version calc (#970)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/45b14ac53f666176213e54ad8c064848652c0ab7

Comment by Roberto Sanchez [ 25/May/23 ]

https://github.com/mongodb/mongo-cxx-driver/pull/970

Generated at Wed Feb 07 22:06:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.