multiversx / mx-sdk-py-cli

Python Command Line Tools and SDK for interacting with the MultiversX blockchain and dApps.
Other
34 stars 36 forks source link

Throw error if Rust is not installed for contract operations: new, build, clean #376

Closed popenta closed 8 months ago

popenta commented 8 months ago

Previously, if one tried to build a contract using mxpy and it did not have Rust installed, mxpy would install it on the spot. Now, it does not install it anymore, it throws an error saying:

Rust is not installed on your machine. Please run `mxpy deps install rust --overwrite` and try again.

This was done to make it easier for people to debug in case the installation failed. If sc-meta's dependencies we're not installed it would fail the installation, but still proceed to try the contract build.

Fixes issue https://github.com/multiversx/mx-sdk-py-cli/issues/371.