Skip to content

Commit

Permalink
Rename pip._internal.distributions.{source -> sdist}
Browse files Browse the repository at this point in the history
Certain environments seem to be leaving behind empty folders in this
directory -- There was an older pip release that included a source/
folder here which isn't getting deleted for some reason. I have not
figured out the root cause why this happens yet. This is resulting in
ImportErrors since Python imports have a higher precedence for packages
compared to modules.

This commit changes the name we're trying to import from, which should
help prevent this mode of failure.
  • Loading branch information
pradyunsg committed Jan 21, 2020
1 parent bd02564 commit 8f3687c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/distributions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pip._internal.distributions.source import SourceDistribution
from pip._internal.distributions.sdist import SourceDistribution
from pip._internal.distributions.wheel import WheelDistribution
from pip._internal.utils.typing import MYPY_CHECK_RUNNING

Expand Down
File renamed without changes.

0 comments on commit 8f3687c

Please sign in to comment.