#!/usr/bin/env python
# -*- coding: utf-8 -*-

#from distutils.core import setup
from setuptools import setup
import autoit

setup(
    name='PyAutoIt',
    version=autoit.__version__,
    packages=['autoit'],
    packages_data={'': ['lib\\AutoItX3.dll', 'lib\\AutoItX3_x64.dll']},
    url='https://github.com/jacexh/pyautoit',
    include_package_data=True,
    license='MIT',
    author='Jace Xu',
    author_email='jace@xuh.me',
    description='Python Wrapper for AutoIt v3',
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Win32 (MS Windows)",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: Microsoft :: Windows",
        "Programming Language :: Python",
        "Topic :: Software Development :: Testing"
    ]
)

@@ -44,57 +44,89 @@
 *-%0A%0A
-#from distutils.core import setup%0Afrom setuptools
+try:%0A    from setuptools import setup%0Aexcept ImportError:%0A    from distutils.core
  imp
@@ -135,16 +135,17 @@
 t setup%0A
+%0A
 import a
@@ -247,17 +247,16 @@
  package
-s
 _data=%7B'
@@ -269,41 +269,9 @@
 ib%5C%5C
-AutoItX3.dll', 'lib%5C%5CAutoItX3_x64
+*
 .dll
@@ -325,39 +325,8 @@
 t',%0A
-    include_package_data=True,%0A
     

Fix bug in setup.py