[SERVER-70938] Remove --system-site-packages from virtual env setup Created: 28/Oct/22  Updated: 29/Oct/23  Resolved: 28/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.18, 4.2.24

Type: Bug Priority: Major - P3
Reporter: Tausif Rahman (Inactive) Assignee: Tausif Rahman (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Participants:
Linked BF Score: 162

 Description   

This will resolve the bug in BF-26744.

There have been reports of the following error when using --system-site-packages in a virtual environment.

AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'

https://github.com/pypa/setuptools/issues/1694
https://github.com/pypa/pip/issues/6264

On other branches (5.0, 6.0, master), we don't use --system-site-packages.
We should remove --system-site-packages from virtualenv setup on 4.4 since it doesn't provide much value in our case.



 Comments   
Comment by Githook User [ 31/Oct/22 ]

Author:

{'name': 'Tausif Rahman', 'email': 'tausif.rahman@mongodb.com', 'username': 'trahman1318'}

Message: SERVER-70938 Remove --system-site-packages from virtual env setup

(cherry picked from commit fb5daecc948055be2ddda8b1f93cf111579375e9)
Branch: v4.2
https://github.com/mongodb/mongo/commit/c1158a7d97c4603beca884b4f3a990c95d5f455f

Comment by Githook User [ 28/Oct/22 ]

Author:

{'name': 'Tausif Rahman', 'email': 'tausif.rahman@mongodb.com', 'username': 'trahman1318'}

Message: SERVER-70938 Remove --system-site-packages from virtual env setup
Branch: v4.4
https://github.com/mongodb/mongo/commit/fb5daecc948055be2ddda8b1f93cf111579375e9

Generated at Thu Feb 08 06:17:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.