-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow setting an index URL when creating the venv #660
base: master
Are you sure you want to change the base?
Conversation
29d79b6
to
b85d62a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to add a test that sets $index
to something.
manifests/pyvenv.pp
Outdated
@@ -80,13 +82,18 @@ | |||
|
|||
$pip_cmd = "${python::exec_prefix}${venv_dir}/bin/pip" | |||
|
|||
$index_config = $index ? { | |||
undef => '', | |||
default => "-i ${index}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not shell_escape
/ batch_escape
/ powershell_escape
this variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Hi Team, |
Pull Request (PR) description
This PR provides an optional Parameter for the virtualenv creation. This allows e.g. in airgapped environments to specify a private pip index as source for the pip and setuptools packages
This Pull Request (PR) fixes the following issues