You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For development, install [pybind11-stubgen](https://github.com/sizmailov/pybind11-stubgen) so the aiedit/core.pyi file will be updated in case of changes in the C++ bindings.
41
-
42
50
# Installation
43
51
44
52
## Using `conda` (recommended)
@@ -55,31 +63,19 @@ This will make the `aiedit` command available in the environment.
55
63
56
64
Build AIEdit in the `build` folder by running the following in the project's root folder:
57
65
58
-
```
59
-
cmake -S . -B build
60
-
cmake --build build
61
-
```
62
-
63
-
This will put a `core*.so` file in the `aiedit` package, which can now be used by adding the project root to `$PYTHONPATH` and running:
64
-
65
66
```shell
66
-
python -m aiedit
67
+
pip install . --no-build-isolation
67
68
```
68
69
69
-
Running `cmake --install build` will install AIEdit to your Python environment's `site-packages`, making `python -m aiedit` available without requiring changes to `$PYTHONPATH`.
70
+
## For Developers
70
71
71
-
If PyTorch/libtorch are installed in a conda environment, you might have you update the `CMAKE_PREFIX_PATH` environment variable. To find PyTorch's CMake prefix path, run:
72
+
If you are modifying the C++ or Python code and want your changes to reflect immediately, use an editable install:
Install [pybind11-stubgen](https://github.com/sizmailov/pybind11-stubgen) so the aiedit/core.pyi file will be updated in case of changes in the C++ bindings.
0 commit comments