from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

setup(name              = 'Adafruit_MAX9744',
      version           = '1.0.1',
      author            = 'Tony DiCola',
      author_email      = 'tdicola@adafruit.com',
      description       = 'Library for controlling the MAX9744 class D amplifier with I2C volume control on a Raspberry Pi or Beaglebone Black.',
      license           = 'MIT',
      url               = 'https://github.com/adafruit/Adafruit_Python_MAX9744/',
      dependency_links  = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.9.0'],
      install_requires  = ['Adafruit-GPIO>=0.9.0'],
      packages          = find_packages())

@@ -1,12 +1,94 @@
+try:%0A    # Try using ez_setup to install setuptools if not already installed.%0A    
 from ez_setu
@@ -111,16 +111,20 @@
 uptools%0A
+    
 use_setu
@@ -132,16 +132,122 @@
 tools()%0A
+except ImportError:%0A    # Ignore import error and assume Python 3 which already has setuptools.%0A    pass%0A%0A
 from set
@@ -360,17 +360,17 @@
  = '1.0.
-1
+2
 ',%0A     

Fix python 3 pip install issue with ez_setup relative import.