Skip to content

Commit

Permalink
Fix package information retrieval for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Nov 24, 2018
1 parent 750e31d commit e30cd20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion poetry/repositories/pypi_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,13 @@ def _get_info_from_sdist(
# Still nothing, try reading (without executing it)
# the setup.py file.
try:
info.update(self._inspect_sdist_with_setup(sdist_dir))
setup_info = self._inspect_sdist_with_setup(sdist_dir)

for key, value in info.items():
if value:
continue

info[key] = setup_info[key]

return info
except Exception as e:
Expand Down

0 comments on commit e30cd20

Please sign in to comment.