This repository was archived by the owner on Feb 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 9393 default => " python${version} " ,
9494 }
9595
96+ $virtualenv = $version ? {
97+ ' system' => ' virtualenv' ,
98+ default => " virtualenv-${version} " ,
99+ }
100+
96101 $proxy_flag = $proxy ? {
97102 false => ' ' ,
98103 default => " --proxy=${proxy} " ,
144149
145150
146151 exec { "python_virtualenv_${venv_dir}" :
147- command => " true ${proxy_command} && virtualenv ${system_pkgs_flag} -p ${python} ${venv_dir} && ${venv_dir} /bin/pip wheel --help > /dev/null 2>&1 && { ${venv_dir} /bin/pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${venv_dir} /bin/pip --log ${venv_dir} /pip.log install ${pypi_index} ${proxy_flag} \$ wheel_support_flag --upgrade pip ${distribute_pkg} || ${venv_dir} /bin/pip --log ${venv_dir} /pip.log install ${pypi_index} ${proxy_flag} --upgrade pip ${distribute_pkg} ;}" ,
152+ command => " true ${proxy_command} && ${ virtualenv} ${system_pkgs_flag} -p ${python} ${venv_dir} && ${venv_dir} /bin/pip wheel --help > /dev/null 2>&1 && { ${venv_dir} /bin/pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${venv_dir} /bin/pip --log ${venv_dir} /pip.log install ${pypi_index} ${proxy_flag} \$ wheel_support_flag --upgrade pip ${distribute_pkg} || ${venv_dir} /bin/pip --log ${venv_dir} /pip.log install ${pypi_index} ${proxy_flag} --upgrade pip ${distribute_pkg} ;}" ,
148153 user => $owner ,
149154 creates => " ${venv_dir} /bin/activate" ,
150155 path => $path ,
You can’t perform that action at this time.
0 commit comments