Originally reported by: marcusva (Bitbucket: marcusva, GitHub: marcusva)
python setup.py install --record=<somefile>
will create a file, which keeps a list of all files being installed by the distutils command.
The install_egg_info class of setuptools also puts a directory into the list, which by definition of the --record argument is not allowed.
Package management tools, which rely on --record and assume only files to be installed, will break.
The offending line:
https://bitbucket.org/pypa/setuptools/src/b480829f68381870bf3a7fef1964b413d7dc3c32/setuptools/command/install_egg_info.py?at=default#cl-26
The same line is also available in distutils' install_egg_info class, the .egg-info in that class however is a plain file.
The fix should be easy enough by simply changing it to something like
self.outputs = []