remove debug stuff

This commit is contained in:
Guilherme Espada 2024-03-01 16:06:41 +00:00
parent aacb871ccc
commit 47f7f3c91a

View file

@ -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: