diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2023-03-07 20:40:04 +0100 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2023-03-07 20:40:04 +0100 |
commit | 429e90153cc7ad57d22aaa3cc00d2d73f760f4dd (patch) | |
tree | 76d7360ace280173e9769472dc8784243092c889 /README.md | |
parent | f4385faa6f740ca07aac48874242b7a0769b778f (diff) | |
download | mbedtls-429e90153cc7ad57d22aaa3cc00d2d73f760f4dd.zip mbedtls-429e90153cc7ad57d22aaa3cc00d2d73f760f4dd.tar.gz mbedtls-429e90153cc7ad57d22aaa3cc00d2d73f760f4dd.tar.bz2 |
Improve pip instructions
Our build scripts invoke `python3` in preference to `python`, so make the
default instruction use `python3`. On many systems (macOS, some Linux),
`python` invokes Python 2 which our scripts do not support.
Suggest --user by default. It's usually the right thing outside of venvs.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -61,10 +61,11 @@ The source code of Mbed TLS includes some files that are automatically generated The following tools are required: * Perl, for some library source files and for Visual Studio build files. -* Python 3 and some Python packages, for some library source files, sample programs and test data. To install the necessary packages, run +* Python 3 and some Python packages, for some library source files, sample programs and test data. To install the necessary packages, run: ``` - python -m pip install -r scripts/basic.requirements.txt + python3 -m pip install --user -r scripts/basic.requirements.txt ``` + Depending on your Python installation, you may need to invoke `python` instead of `python3`. To install the packages system-wide, omit the `--user` option. * A C compiler for the host platform, for some test data. If you are cross-compiling, you must set the `CC` environment variable to a C compiler for the host platform when generating the configuration-independent files. |