Open wiggin15 opened 6 years ago
Thanks @wiggin15. Sounds like this is indeed a bug.
I imagine the hard part of solving this is going to be writing a test for it (as is so often the case).
I still don't think this should not be supported: we should detect it and throw an error.
@benoit-pierre I think I may have misunderstood the issue, I thought that they were files that start in different folders but have the same name, pass through some intermediate stage where they are in the same folder, and then are distributed out to new locations where they have different names.
If this is trying to install two different files in the same location, then I think it rightly should be raising an error.
@pganssle I started discussion about this in https://github.com/pypa/packaging-problems/issues/152 but no action has been taken yet. If we think this case should raise an error then this should be the behavior in "pip" and "wheel" too, but in order to open an issue for these projects we need a decision in the PyPA issue.
easy_install fails to install, for example,
selenium
's wheel file:This is because selenium contains the following files in the wheel file:
setuptools tries to copy all the files from.data to the base directory (https://github.com/pypa/setuptools/blob/master/setuptools/wheel.py#L146) and
os.renames
(https://github.com/pypa/setuptools/blob/master/setuptools/wheel.py#L38) fails on Windows when the destination already exists.