setuptools missing interpreter for easy_install

Chris Schanzle <[email protected]> Wed, 24 Jul 2013 12:58:22 -0400
Newsgroups gmane.linux.redhat.rpm.atrpms.devel
Message-ID <[email protected]>
setuptools-0.7.2-7.el6.noarch provides /usr/bin/easy_install and /usr/bin/easy_install-2.6

Both scripts are missing the rest of the first line for the python interpreter:

   #!
   # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.7.2','console_scripts','easy_install'


Note there is a single space after #! on line 1...could be a clue!

This results in the script being interpreted by bash and of course it falls over:

$ easy_install foo
/usr/bin/easy_install: line 3: __requires__: command not found


Making line 1 look like:

   #!/usr/bin/python

seems to work.

Thanks!