(venv: str)
| 19 | |
| 20 | |
| 21 | def 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 |