Skip to content

Commit a7585a1

Browse files
authored
Fix function to get if pyperformance is installed in editable mode (#369)
This is used in compile.py: compile_all installs pyperformance for every version it compiles. If the main pyperformance is installed in editable mode, this should be propagated down. The mechamism to do that was broken because was checking the presence of setup.py, now long gone.
1 parent 9164273 commit a7585a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def is_installed():
2020

2121
def is_dev():
2222
parent = os.path.dirname(PKG_ROOT)
23-
return os.path.exists(os.path.join(parent, 'setup.py'))
23+
return os.path.exists(os.path.join(parent, 'pyproject.toml'))
2424

2525

2626
def _is_venv():

0 commit comments

Comments
 (0)