[SERVER-52687] MongoDB 4.0 - building with Python 3 Created: 09/Nov/20  Updated: 22/Jan/21  Resolved: 11/Jan/21

Status: Closed
Project: Core Server
Component/s: Build, Packaging
Affects Version/s: 4.0.20
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: hydrapolic Assignee: Andrew Morrow (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-32295 Support python 3 Closed
Sprint: Dev Platform 2021-01-25
Participants:

 Description   

Hello,

in Gentoo Linux we build MongoDB from source. While MongoDB 4.0 is supported until January 2022 we cannot keep it in portage in it's current form simply because we need to get rid of Python 2 (which is EOL).

Can please the building process be adjusted so that MongoDB 4.0 is buildable with Python 3 (3.7+)?

Thanks



 Comments   
Comment by Andrew Morrow (Inactive) [ 11/Jan/21 ]

Hi hydrapolic -

Thank you for the the ticket. The effort to upgrade from Python 2 to Python 3 happened during the development cycle that led to MongoDB 4.2. It was actually a very large undertaking involving multiple teams, due to the extensive use of Python in the build and test infrastructure for the product. The changes that were made were not simply the result of running something like 2to3, and can't be trivially backported to the v4.0 branch. Given that there are now two newer stable releases of MongoDB which use Python 3 (v4.2 and v4.4), we don't plan on investing in upgrading the v4.0 branch to support Python 3. It will remain on Python 2 forever. I recognize that this is inconvenient (it is often inconvenient for us too!). My recommendation would be that if you truly can't continue to somehow use Python 2 to build the v4.0 branch, then you should drop v4.0 from portage in favor of v4.2 and v4.4.

Comment by Eric Sedor [ 13/Nov/20 ]

Thanks hydrapolic, I'm passing this on to an appropriate team for consideration.

Comment by hydrapolic [ 09/Nov/20 ]

Gentoo bug: https://bugs.gentoo.org/708954

Generated at Thu Feb 08 05:28:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.