Skip to content

Commit 895e2f6

Browse files
Merge pull request #903 from multiversx/legacy-mxpy-up-1
mxpy-up is legacy
2 parents bbee425 + a20eb59 commit 895e2f6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

docs/sdk-and-tools/sdk-py/installing-mxpy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pipx upgrade multiversx-sdk-cli
7878

7979
Installing **mxpy** using **mxpy-up** is not recommended anymore. We recommend using **pipx** instead.
8080

81-
If you've previously installed **mxpy** using **mxpy-up** and you'd like to switch to **pipx**, make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
81+
If you've previously installed **mxpy** using the legacy **mxpy-up**, you should switch to the **pipx** approach. Make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
8282

8383
```sh
8484
rm ~/multiversx-sdk/mxpy

docs/sdk-and-tools/sdk-py/mxpy-cli.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@ pipx upgrade multiversx-sdk-cli
3838

3939
### Using the installation script
4040

41-
This method should _only_ be used if you installed **mxpy** as described [here](installing-mxpy.md#install-using-mxpy-up).
42-
43-
If you are using a older version of `mxpy` you can simply upgrade to a newer version by typing the following commands in a terminal:
41+
If you've previously installed **mxpy** using the legacy **mxpy-up** installation script, you should switch to the **pipx** approach. Make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
4442

4543
```sh
46-
wget -O mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/main/mxpy-up.py && python3 mxpy-up.py
44+
rm ~/multiversx-sdk/mxpy
45+
rm -rf ~/multiversx-sdk/mxpy-venv
4746
```
4847

49-
This will recreate the light Python virtual environment (based on `venv`) in `~/multiversx-sdk/mxpy-venv`.
50-
Since you've had a previous `mxpy` version installed, you probably have already altered the **`$PATH`** variable so you don't have to re-alter it.
48+
Additionally, you might want to cleanup the shell profile files, to not alter anymore the `PATH` variable with respect to `~/multiversx-sdk`: `~/.profile`, `~/.bashrc` and / or `~/.zshrc`.
5149

5250
[comment]: # (mx-context-auto)
5351

0 commit comments

Comments
 (0)