Skip to content

Commit

Permalink
Merge pull request #903 from multiversx/legacy-mxpy-up-1
Browse files Browse the repository at this point in the history
mxpy-up is legacy
  • Loading branch information
andreibancioiu authored May 29, 2024
2 parents bbee425 + a20eb59 commit 895e2f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/sdk-and-tools/sdk-py/installing-mxpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pipx upgrade multiversx-sdk-cli

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

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:
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:

```sh
rm ~/multiversx-sdk/mxpy
Expand Down
10 changes: 4 additions & 6 deletions docs/sdk-and-tools/sdk-py/mxpy-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ pipx upgrade multiversx-sdk-cli

### Using the installation script

This method should _only_ be used if you installed **mxpy** as described [here](installing-mxpy.md#install-using-mxpy-up).

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:
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:

```sh
wget -O mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/main/mxpy-up.py && python3 mxpy-up.py
rm ~/multiversx-sdk/mxpy
rm -rf ~/multiversx-sdk/mxpy-venv
```

This will recreate the light Python virtual environment (based on `venv`) in `~/multiversx-sdk/mxpy-venv`.
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.
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`.

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

Expand Down

0 comments on commit 895e2f6

Please sign in to comment.