Commit e30cd20b by Sébastien Eustace

Fix package information retrieval for Python 2

parent 750e31de
......@@ -518,7 +518,13 @@ class PyPiRepository(Repository):
# 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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment