Skip to content

Commit 3da3548

Browse files
committed
Update install instructions and Makefile for changed paths
1 parent 7d1a3a8 commit 3da3548

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ dev-install-torch:
7979

8080
.PHONY: dev-install-triton
8181
dev-install-triton:
82-
$(PYTHON) -m pip install -e python --no-build-isolation -v
82+
$(PYTHON) -m pip install -e . --no-build-isolation -v
8383

8484
.PHONY: dev-install
8585
.NOPARALLEL: dev-install

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ git clone https://github.com/triton-lang/triton.git
7171
cd triton
7272

7373
pip install -r python/requirements.txt # build-time dependencies
74-
pip install -e python
74+
pip install -e .
7575
```
7676

7777
Or with a virtualenv:
@@ -84,7 +84,7 @@ python -m venv .venv --prompt triton
8484
source .venv/bin/activate
8585

8686
pip install -r python/requirements.txt # build-time dependencies
87-
pip install -e python
87+
pip install -e .
8888
```
8989

9090
# Building with a custom LLVM
@@ -124,7 +124,7 @@ arbitrary LLVM version.
124124
$ LLVM_INCLUDE_DIRS=$LLVM_BUILD_DIR/include \
125125
LLVM_LIBRARY_DIR=$LLVM_BUILD_DIR/lib \
126126
LLVM_SYSPATH=$LLVM_BUILD_DIR \
127-
pip install -e python
127+
pip install -e .
128128

129129
# Tips for building
130130

@@ -139,7 +139,7 @@ arbitrary LLVM version.
139139
can be changed anytime.
140140

141141
- If you're running out of memory when building Triton, specify the `MAX_JOBS`
142-
environment variable (to the `pip install -e python` command) to limit the
142+
environment variable (to the `pip install -e .` command) to limit the
143143
number of jobs.
144144

145145
- Pass `--no-build-isolation` to `pip install` to make nop builds faster.
@@ -150,7 +150,7 @@ arbitrary LLVM version.
150150
(probably because, in our build, users don't invoke cmake directly, but
151151
instead use setup.py). Teach vscode how to compile Triton as follows.
152152

153-
- Do a local build. Run command `pip install -e python`
153+
- Do a local build. Run command `pip install -e .`
154154
- Get the full path to the `compile_commands.json` file produced by the build:
155155
`find python/build -name 'compile_commands.json' | xargs readlink -f`.
156156
You might get a full path similar to `/Users/{username}/triton/python/build/cmake.macosx-11.1-arm64-cpython-3.12/compile_commands.json`

0 commit comments

Comments
 (0)