mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
remove debug stuff
This commit is contained in:
parent
aacb871ccc
commit
47f7f3c91a
1 changed files with 2 additions and 5 deletions
|
|
@ -235,12 +235,9 @@ def install_environment(
|
||||||
|
|
||||||
if name is None:
|
if name is None:
|
||||||
name = try_navigate('project', 'name')
|
name = try_navigate('project', 'name')
|
||||||
print(name)
|
|
||||||
if name is None:
|
if name is None:
|
||||||
setup = prefix.prefix_dir / Path('setup.py')
|
setup = prefix.prefix_dir / Path('setup.py')
|
||||||
print(setup)
|
|
||||||
if setup.exists():
|
if setup.exists():
|
||||||
print('it exists')
|
|
||||||
with tempfile.TemporaryDirectory() as td:
|
with tempfile.TemporaryDirectory() as td:
|
||||||
try:
|
try:
|
||||||
lang_base.setup_cmd(
|
lang_base.setup_cmd(
|
||||||
|
|
@ -254,7 +251,7 @@ def install_environment(
|
||||||
'setup.py',
|
'setup.py',
|
||||||
'egg_info',
|
'egg_info',
|
||||||
'-e',
|
'-e',
|
||||||
f"{td}",
|
f'{td}',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
candidates = list(Path(td).glob('*.egg-info'))
|
candidates = list(Path(td).glob('*.egg-info'))
|
||||||
|
|
@ -271,7 +268,7 @@ def install_environment(
|
||||||
'uv',
|
'uv',
|
||||||
'pip',
|
'pip',
|
||||||
'install',
|
'install',
|
||||||
f"{name} @ .",
|
f'{name} @ .',
|
||||||
*additional_dependencies,
|
*additional_dependencies,
|
||||||
)
|
)
|
||||||
if pip_cmd is not None:
|
if pip_cmd is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue