Skip to content

Commit bc13dae

Browse files
authored
docs: Fix incorrect python package path in development.md (#4322)
The documentation for setting the PYTHONPATH in development.md points to an incorrect directory. The python package is now located at `build/python_packages/torch-mlir` instead of `build/tools/torch-mlir/python_packages/torch_mlir`. This commit corrects the path to help new users correctly set up their environment.
1 parent ed166d4 commit bc13dae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build_tools/write_env_file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ portable_realpath() {
1313

1414
td="$(portable_realpath "$(dirname "$0")"/..)"
1515
build_dir="$(portable_realpath "${TORCH_MLIR_BUILD_DIR:-$td/build}")"
16-
python_packages_dir="$build_dir/tools/torch-mlir/python_packages"
16+
python_packages_dir="$build_dir/python_packages"
1717

1818
write_env_file() {
1919
echo "Updating $build_dir/.env file"

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ TIP: add multiple target options to stack build phases
197197
#### Linux and macOS
198198

199199
```shell
200-
export PYTHONPATH=`pwd`/build/tools/torch-mlir/python_packages/torch_mlir:`pwd`/test/python/fx_importer
200+
export PYTHONPATH=`pwd`/build/python_packages/torch_mlir:`pwd`/test/python/fx_importer
201201
```
202202

203203
#### Windows PowerShell

0 commit comments

Comments
 (0)