Skip to content

Commit 1525fb7

Browse files
[Python 3.9 Upgrade] [NodeJS Upgrade] Update developer guide for Python 3.9 Upgrade and Node Version Upgrade (#3714)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 096702f commit 1525fb7

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

DEVELOPER_GUIDE.md

+9-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- [Build Tools](#build-tools)
44
- [Install Prerequisites](#install-prerequisites)
55
- [Pyenv](#pyenv)
6-
- [Python 3.7](#python-37)
6+
- [Python 3.9](#python-39)
77
- [Pipenv](#pipenv)
88
- [NVM and Node](#nvm-and-node)
99
- [Yarn](#yarn)
@@ -42,20 +42,20 @@ Use pyenv to manage multiple versions of Python. This can be installed with [pye
4242
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
4343
```
4444

45-
#### Python 3.7
45+
#### Python 3.9
4646

47-
Python projects in this repository use Python 3.7. See the [Python Beginners Guide](https://wiki.python.org/moin/BeginnersGuide) if you have never worked with the language.
47+
Python projects in this repository use Python 3.9. See the [Python Beginners Guide](https://wiki.python.org/moin/BeginnersGuide) if you have never worked with the language.
4848

4949
```
5050
$ python3 --version
51-
Python 3.7.11
51+
Python 3.9.17
5252
```
5353

5454
If you are using pyenv.
5555

5656
```
57-
pyenv install 3.7.12 # use 3.7.9 on Windows, the latest at the time of writing this
58-
pyenv global 3.7.12
57+
pyenv install 3.9.17 # use 3.9.17 on Windows, the latest at the time of writing this
58+
pyenv global 3.9.17
5959
```
6060

6161
#### Pipenv
@@ -66,25 +66,16 @@ This project uses [pipenv](https://pipenv.pypa.io/en/latest/), which is typicall
6666
$ pip install pipenv
6767
6868
$ pipenv --version
69-
pipenv, version 19.0
69+
pipenv, version 2023.6.12
7070
```
7171

7272
On Windows, run `pyenv rehash` if `pipenv` cannot be found. This rehashes pyenv shims, creating a `pipenv` file in `/.pyenv/pyenv-win/shims/`.
7373

7474
#### NVM and Node
7575

76-
Install [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) to use the Node 14.18.2 version as it is required
76+
Install [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) to use the Node version defined in [OpenSearch-Dashboards](https://github.com/opensearch-project/OpenSearch-Dashboards) repository `.nvmrc` file as it is required.
7777

78-
```
79-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
80-
nvm install v14.18.2
81-
```
82-
83-
Add the lines below to the correct profile file (`~/.zshrc`, `~/.bashrc`, etc.).
84-
```
85-
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
86-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
87-
```
78+
Use the official [nvm guide](https://github.com/nvm-sh/nvm#installing-and-updating) to install nvm and corresponding Node version.
8879

8980
#### Yarn
9081

0 commit comments

Comments
 (0)