This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jens.Timmerman
Recipients Arfrever, Jens.Timmerman, berker.peksag, cgrohmann, djc, dstufft, eric.araujo, gmt, jaraco, ralf.gommers, scoder
Date 2016-09-13.09:01:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
small file to reproduce this problem if people still had trouble reproducing (this works with the attached d002-distutils-type-checks-can-fail-issue-23102.patch)

#!/usr/bin/env python
''' Installation script that breaks '''

from distutils.command import install
from distutils.core import setup

class installer(install.install):
    def run(self):
        import setuptools

      cmdclass = dict(install=installer)

run with: 
python install --user
running install
running build
running install_egg_info
Traceback (most recent call last):
  File "", line 14, in <module>
    cmdclass = dict(install=installer)
  File "/usr/lib64/python2.7/distutils/", line 151, in setup
  File "/usr/lib64/python2.7/distutils/", line 953, in run_commands
  File "/usr/lib64/python2.7/distutils/", line 972, in run_command
  File "", line 10, in run
  File "/usr/lib64/python2.7/distutils/command/", line 575, in run
  File "/usr/lib64/python2.7/distutils/", line 326, in run_command
  File "/usr/lib64/python2.7/distutils/", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/usr/lib64/python2.7/distutils/", line 846, in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
  File "/usr/lib64/python2.7/distutils/", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance
expected result:
running install
running build
running install_egg_info
Writing /home/jens/.local/lib/python2.7/site-packages/test-0.0.0-py2.7.egg-info
Date User Action Args
2016-09-13 09:01:57Jens.Timmermansetrecipients: + Jens.Timmerman, jaraco, scoder, cgrohmann, djc, eric.araujo, Arfrever, berker.peksag, dstufft, ralf.gommers, gmt
2016-09-13 09:01:57Jens.Timmermansetmessageid: <>
2016-09-13 09:01:57Jens.Timmermanlinkissue23102 messages
2016-09-13 09:01:56Jens.Timmermancreate