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
Update docs and .env file to reflect PYTHONPATH variability (#4332)
This updates the docs and `build_tools/write_env_file.sh` to correctly
identify the `PYTHONPATH` based on in-tree vs. out-of-tree builds.
Additionally, I've updated various build configure commands to include a
directive to align `Python` with `Python3`, since having conflicting
versions of python can cause issues when not explicitly setting both to
the same python executable.
Resolves#4331
---------
Signed-off-by: zjgarvey <[email protected]>
### Setup Python Environment to export the built Python packages
196
196
197
+
When CMake is configured with `-DMLIR_ENABLE_BINDINGS_PYTHON=ON`, the python packages will typically be located in either:
198
+
199
+
1. `./build/tools/torch-mlir/python_packages/`if doing an in-tree build.
200
+
2. `./build/python_packages/`if doing an out-of-tree build.
201
+
202
+
For the following sections, let`python_pkg_dir` represent whichever of the above is relevant foryour build setup. On Linux and macOS, you can run `./build_tools/write_env_file.sh` to generate a file `./.env`in your root source directory with the correct `PYTHONPATH`.
0 commit comments