File tree 1 file changed +1
-14
lines changed 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 18
18
19
19
20
20
if typing .TYPE_CHECKING : # pragma: no cover
21
- from mesonpy ._compat import Iterable , Iterator , Path
21
+ from mesonpy ._compat import Iterator , Path
22
22
23
23
24
24
@contextlib .contextmanager
@@ -32,19 +32,6 @@ def chdir(path: Path) -> Iterator[Path]:
32
32
os .chdir (old_cwd )
33
33
34
34
35
- @contextlib .contextmanager
36
- def add_ld_path (paths : Iterable [str ]) -> Iterator [None ]:
37
- """Context manager helper to add a path to LD_LIBRARY_PATH."""
38
- old_value = os .environ .get ('LD_LIBRARY_PATH' )
39
- old_paths = old_value .split (os .pathsep ) if old_value else []
40
- os .environ ['LD_LIBRARY_PATH' ] = os .pathsep .join ([* paths , * old_paths ])
41
- try :
42
- yield
43
- finally :
44
- if old_value is not None : # pragma: no cover
45
- os .environ ['LD_LIBRARY_PATH' ] = old_value
46
-
47
-
48
35
@contextlib .contextmanager
49
36
def create_targz (path : Path ) -> Iterator [tarfile .TarFile ]:
50
37
"""Opens a .tar.gz file in the file system for edition.."""
You can’t perform that action at this time.
0 commit comments