setup.py
changeset 5329 a8cd0570e3d6
parent 5024 9e718abe3fde
child 5353 cb8ac7263f8a
equal deleted inserted replaced
5328:c51e8f62652a 5329:a8cd0570e3d6
    39 
    39 
    40 # import required features
    40 # import required features
    41 from __pkginfo__ import modname, version, license, description, web, \
    41 from __pkginfo__ import modname, version, license, description, web, \
    42      author, author_email
    42      author, author_email
    43 
    43 
    44 if exists('README'):
    44 long_description = file('README').read()
    45    long_description = file('README').read()
       
    46 
    45 
    47 # import optional features
    46 # import optional features
    48 import __pkginfo__
    47 import __pkginfo__
    49 if USE_SETUPTOOLS:
    48 if USE_SETUPTOOLS:
    50    requires = {}
    49    requires = {}
   177         if USE_SETUPTOOLS:
   176         if USE_SETUPTOOLS:
   178             kwargs['namespace_packages'] = [subpackage_of]
   177             kwargs['namespace_packages'] = [subpackage_of]
   179     else:
   178     else:
   180         kwargs['package_dir'] = {modname : '.'}
   179         kwargs['package_dir'] = {modname : '.'}
   181         packages = [modname] + get_packages(os.getcwd(), modname)
   180         packages = [modname] + get_packages(os.getcwd(), modname)
       
   181     if USE_SETUPTOOLS:
       
   182        kwargs['install_requires'] = install_requires
   182     kwargs['packages'] = packages
   183     kwargs['packages'] = packages
   183     return setup(name=distname, version=version, license=license, url=web,
   184     return setup(name=distname, version=version, license=license, url=web,
   184                  description=description, long_description=long_description,
   185                  description=description, long_description=long_description,
   185                  author=author, author_email=author_email,
   186                  author=author, author_email=author_email,
   186                  scripts=ensure_scripts(scripts), data_files=data_files,
   187                  scripts=ensure_scripts(scripts), data_files=data_files,
   187                  ext_modules=ext_modules,
   188                  ext_modules=ext_modules,
   188                  install_requires=install_requires,
       
   189                  #dependency_links=["http://alain:alain@intranet.logilab.fr/~alain/"],
       
   190                  cmdclass={'install_lib': MyInstallLib},
   189                  cmdclass={'install_lib': MyInstallLib},
   191                  **kwargs
   190                  **kwargs
   192                  )
   191                  )
   193 
   192 
   194 if __name__ == '__main__' :
   193 if __name__ == '__main__' :