diff --git a/tvb_build/build_from_conda.py b/tvb_build/build_from_conda.py index b3e929e735..c629c1b36c 100644 --- a/tvb_build/build_from_conda.py +++ b/tvb_build/build_from_conda.py @@ -214,6 +214,7 @@ def _replace_first_line_if_pattern(pathname: str, pattern: str, replacement: str """ for filename in os.listdir(pathname): file_path = os.path.join(pathname, filename) + _log(1, f"Pip path: {file_path}") if pattern in file_path: with open(file_path, 'r') as file: lines = file.readlines() @@ -221,7 +222,7 @@ def _replace_first_line_if_pattern(pathname: str, pattern: str, replacement: str lines[0] = replacement + '\n' with open(file_path, 'w') as file: file.writelines(lines) - print(f"First line of {file_path} replaced with: {replacement}") + _log(1, f"First line of {file_path} replaced with: {replacement}") def _modify_pth(pth_name): @@ -305,6 +306,7 @@ def prepare_anaconda_dist(config): _modify_pth(config.easy_install_pth) if config.bin_path: _replace_first_line_if_pattern(config.bin_path, 'bin\\pip', '#!../tvb_data/bin/python') + _log(1, "Bin Path" + config.bin_path) _fix_jupyter_kernel(config.target_library_root, config.platform_name == "Windows") _log(1, "Creating command files:")