Tweak development.md for more speed (#2667)

Adding the `--progress` flag shows the same output as what `git clone`
would show. This is very nice for slow connections. Without it, the
command may run for many minutes without providing any indication that
it is still doing something.

For `--depth=1`, I think it should be safe as most people have new
enough git versions nowadays, but let's be safe and make it an optional
suggestion. I ran all the tests fine with `--depth=1`, but I don't know
whether things will keep working when the submodules get updated for
systems with old git versions.
pull/2411/merge snapshot-20231220.1058
Rik Huijzer 2023-12-20 09:34:50 +01:00 committed by GitHub
parent 20ab882840
commit 8fa81d181b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -5,9 +5,12 @@
```shell ```shell
git clone https://github.com/llvm/torch-mlir git clone https://github.com/llvm/torch-mlir
cd torch-mlir cd torch-mlir
git submodule update --init git submodule update --init --progress
``` ```
Optionally, use `--depth=1` to make a shallow clone of the submodules.
While this is running, you can already setup the Python venv and dependencies in the next step.
## Setup your Python VirtualEnvironment and Dependencies ## Setup your Python VirtualEnvironment and Dependencies
Also, ensure that you have the appropriate `python-dev` package installed Also, ensure that you have the appropriate `python-dev` package installed