MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / get_env_patch

Function get_env_patch

pre_commit/languages/perl.py:21–32  ·  view source on GitHub ↗
(venv: str)

Source from the content-addressed store, hash-verified

19
20
21def get_env_patch(venv: str) -> PatchesT:
22 return (
23 ('PATH', (os.path.join(venv, 'bin'), os.pathsep, Var('PATH'))),
24 ('PERL5LIB', os.path.join(venv, 'lib', 'perl5')),
25 ('PERL_MB_OPT', f'--install_base {shlex.quote(venv)}'),
26 (
27 'PERL_MM_OPT', (
28 f'INSTALL_BASE={shlex.quote(venv)} '
29 f'INSTALLSITEMAN1DIR=none INSTALLSITEMAN3DIR=none'
30 ),
31 ),
32 )
33
34
35@contextlib.contextmanager

Callers 1

in_envFunction · 0.70

Calls 1

VarClass · 0.90

Tested by

no test coverage detected