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

Create virtualenvs directory if it does not exist #2877

Merged
merged 3 commits into from
Sep 29, 2018

Conversation

Enzime
Copy link
Contributor

@Enzime Enzime commented Sep 21, 2018

The issue

This PR fixes #2786 as pipenv tries to iterate through WORKON_HOME (virtualenvs folder) without ensuring it exists first.

The fix

Creating the WORKON_HOME directory from inside pipenv/utils.py:get_workon_home.

The checklist
  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

Enzime added a commit to Enzime/pipenv that referenced this pull request Sep 21, 2018
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

Thanks for the patch! The approach looks good to me, but the implementation needs some tweaks for version compatibility.

pipenv/utils.py Outdated Show resolved Hide resolved
@Enzime
Copy link
Contributor Author

Enzime commented Sep 29, 2018

@uranusjr have you had a chance to check my PR again?

@uranusjr uranusjr merged commit 19c1f4a into pypa:master Sep 29, 2018
@Enzime Enzime deleted the fix/no-virtualenv-dir branch September 29, 2018 01:19
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.

Pipenv requires existing folder ~/.local/share/virtualenvs
2 participants