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

Consider environment variable PIP_TARGET when calculate depndancy delta #4776

Merged
merged 5 commits into from
Mar 19, 2022

Conversation

cm-iwata
Copy link
Contributor

The issue

#4775

The fix

When exec subcommand install or sync, if PIP_TARGET is set to environment variables, Refer specified directory for calculate delta, instead default directory

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 #.

@@ -540,7 +540,7 @@ def get_distributions(self):
:rtype: iterator
"""

libdirs = self.base_paths["libdirs"].split(os.pathsep)
libdirs = os.environ.get('PIP_TARGET', self.base_paths["libdirs"].split(os.pathsep))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be return as a list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@frostming
I fixed wrong type

@matteius matteius requested a review from oz123 March 12, 2022 10:17
@oz123 oz123 merged commit 2337984 into pypa:main Mar 19, 2022
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