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

import os
import sys


try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')

setup(
    name='imSound',
    version='0.1.0',
    description='Pro',
    long_description=readme + '\n\n' + history,
    author='DataSounds',
    author_email='arnaldo@datasounds.org, luiz@datasounds.org',
    url='https://github.com/DataSounds/imSound',
    packages=[
        'src/imSound',
    ],
    package_dir={'imSound': 'imSound'},
    include_package_data=True,
    install_requires=[
    ],
    license="PSF",
    zip_safe=False,
    keywords='imSound',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: PSF License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
    ],
    test_suite='tests',
)

@@ -62,17 +62,16 @@
 rt sys%0A%0A
-%0A
 try:%0A   
@@ -99,16 +99,40 @@
 rt setup
+, find_packages, Command
 %0Aexcept 
@@ -274,16 +274,66 @@
 exit()%0A%0A
+here = os.path.abspath(os.path.dirname(__file__))%0A
 readme =
@@ -425,16 +425,54 @@
 ', '')%0A%0A
+install_requires = %5B%0A    'numpy'%0A%5D%0A%0A%0A%0A
 setup(%0A 
@@ -737,38 +737,28 @@
 ges=
-%5B%0A        'src/imSound',%0A    %5D
+find_packages('src')
 ,%0A  
@@ -777,26 +777,15 @@
 r=%7B'
-imSound': 'imSound
+': 'src
 '%7D,%0A
@@ -840,15 +840,24 @@
 res=
-%5B%0A    %5D
+install_requires
 ,%0A  

add imports find_packages