Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chillinger
Copy link

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

@chillinger chillinger force-pushed the venv_index branch 3 times, most recently from 29d79b6 to b85d62a Compare May 17, 2023 07:15
Copy link
Member

@kenyon kenyon left a 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.

@@ -80,13 +82,18 @@

$pip_cmd = "${python::exec_prefix}${venv_dir}/bin/pip"

$index_config = $index ? {
undef => '',
default => "-i ${index}"
Copy link
Member

@smortex smortex May 22, 2023

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@chillinger
Copy link
Author

Hi Team,
currently the tests are failing, but I have not the slightest clue what triggers that failure - I can not see any of my changes being responsible for that.
Could you please check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants