SERVER-86089 Ensure python 3.10 is required to build mongodb (#18912)

GitOrigin-RevId: 0cf203b6b5db649eedcc68ce7b8ab23308ace341
This commit is contained in:
Alexander Neben 2024-02-12 13:42:02 -08:00 committed by MongoDB Bot
parent ab3da07c28
commit 345750a26c
5 changed files with 1021 additions and 1045 deletions

View File

@ -40,9 +40,7 @@ import mongo.toolchain as mongo_toolchain
import mongo.generators as mongo_generators
import mongo.install_actions as install_actions
# TODO SERVER-79172
# We cannot set the limit to python 3.10 since python 3.9 is needed for windows testing
EnsurePythonVersion(3, 9)
EnsurePythonVersion(3, 10)
EnsureSConsVersion(3, 1, 1)
utc_starttime = datetime.utcnow()

View File

@ -8,7 +8,7 @@ is remotely crashed by "server" regularly.
In evergreen the localhost that runs the task acts as a "server" and the remote
host which is created by `host.create` evergreen command acts as a "client".
Powercycle test is the part of resmoke. Python 3.9+ with python venv is required to
Powercycle test is the part of resmoke. Python 3.10+ with python venv is required to
run the resmoke (python3 from [mongodbtoolchain](http://mongodbtoolchain.build.10gen.cc/)
is highly recommended). Python venv can be set up by running in the root mongo repo
directory:

View File

@ -18,7 +18,7 @@ To build MongoDB, you will need:
* `libcurl4-gnutls-dev`
* On Ubuntu, the lzma library is required. Install `liblzma-dev`
* On Amazon Linux, the xz-devel library is required. `yum install xz-devel`
* Python 3.9.x and Pip modules:
* Python 3.10.x and Pip modules:
* See the section "Python Prerequisites" below.
* About 13 GB of free disk space for the core binaries (`mongod`,
`mongos`, and `mongo`) and about 600 GB for the install-all target.
@ -40,7 +40,7 @@ The source for the tools is now available at
## Python Prerequisites
In order to build MongoDB, Python 3.9+ is required, and several Python
In order to build MongoDB, Python 3.10+ is required, and several Python
modules must be installed. Python 3 is included in macOS 10.15 and later.
For earlier macOS versions, Python 3 can be installed using Homebrew or
MacPorts or similar.
@ -131,7 +131,7 @@ targets all built binaries will be in `build/install/bin` by default.
Build requirements:
* Visual Studio 2022 version 17.0 or newer
* Python 3.9
* Python 3.10
Or download a prebuilt binary for Windows at www.mongodb.org.

2052
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@ packages = [
]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
python = ">=3.10,<4.0"
# OPTIONAL
# Libdeps depdencies
networkx = "*" # This is also used as a part of build_metrics so it is sort of required