diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2019-02-19 10:50:57 -0500 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2019-04-08 14:08:49 -0400 |
commit | 8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6 (patch) | |
tree | 69e936c4953cbead2e3bae2690157c5fe75e709d /docs | |
parent | c600aa9d7423eca8151daf626e2799d9a6c7b31c (diff) | |
download | mongo-8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6.tar.gz |
SERVER-32295 Support Python 3
Diffstat (limited to 'docs')
-rw-r--r-- | docs/building.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/building.md b/docs/building.md index 0349e0d38c0..2d902ed7238 100644 --- a/docs/building.md +++ b/docs/building.md @@ -10,7 +10,7 @@ To build MongoDB, you will need: * On Linux and macOS, the libcurl library and header is required. MacOS includes libcurl. * Fedora/RHEL - `dnf install libcurl-devel` * Ubuntu/Debian - `apt-get install libcurl-dev` -* Python 2.7.x and Pip modules: +* Python 3.7.x and Pip modules: * See the section "Python Prerequisites" below. MongoDB supports the following architectures: arm64, ppc64le, s390x, and x86-64. @@ -28,13 +28,13 @@ The source for the tools is now available at [mongodb/mongo-tools](https://githu Python Prerequisites --------------- -In order to build MongoDB, Python 2.7.x is required, and several Python modules. To install +In order to build MongoDB, Python 3.7.x is required, and several Python modules. To install the required Python modules, run: - $ pip2 install -r etc/pip/compile-requirements.txt + $ pip3 install -r etc/pip/compile-requirements.txt -Note: If the `pip2` command is not available, `pip` without a suffix may be the pip command -associated with Python 2.7.x. +Note: If the `pip3` command is not available, `pip` without a suffix may be the pip command +associated with Python 3.7.x. SCons --------------- @@ -43,19 +43,19 @@ For detail information about building, please see [the build manual](https://git If you want to build everything (mongod, mongo, tests, etc): - $ python2 buildscripts/scons.py all + $ python3 buildscripts/scons.py all If you only want to build the database: - $ python2 buildscripts/scons.py mongod + $ python3 buildscripts/scons.py mongod ***Note***: For C++ compilers that are newer than the supported version, the compiler may issue new warnings that cause MongoDB to fail to build since the build system treats compiler warnings as errors. To ignore the warnings, pass the switch `--disable-warnings-as-errors` to scons. - $ python2 buildscripts/scons.py mongod --disable-warnings-as-errors + $ python3 buildscripts/scons.py mongod --disable-warnings-as-errors To install - $ python2 buildscripts/scons.py --prefix=/opt/mongo install + $ python3 buildscripts/scons.py --prefix=/opt/mongo install Please note that prebuilt binaries are available on [mongodb.org](http://www.mongodb.org/downloads) and may be the easiest way to get started. @@ -77,7 +77,7 @@ See [the windows build manual](https://github.com/mongodb/mongo/wiki/Build-Mongo Build requirements: * Visual Studio 2017 version 15.9 or newer -* Python 2.7, ActiveState ActivePython 2.7.x Community Edition for Windows is recommended +* Python 3.7 Or download a prebuilt binary for Windows at www.mongodb.org. |