[packaging] setup.py cleanups
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Apr 2010 15:30:48 +0200
changeset 5329 a8cd0570e3d6
parent 5328 c51e8f62652a
child 5330 19bc44f5f9d1
[packaging] setup.py cleanups
setup.py
--- a/setup.py	Mon Apr 19 13:52:55 2010 +0200
+++ b/setup.py	Mon Apr 19 15:30:48 2010 +0200
@@ -41,8 +41,7 @@
 from __pkginfo__ import modname, version, license, description, web, \
      author, author_email
 
-if exists('README'):
-   long_description = file('README').read()
+long_description = file('README').read()
 
 # import optional features
 import __pkginfo__
@@ -179,14 +178,14 @@
     else:
         kwargs['package_dir'] = {modname : '.'}
         packages = [modname] + get_packages(os.getcwd(), modname)
+    if USE_SETUPTOOLS:
+       kwargs['install_requires'] = install_requires
     kwargs['packages'] = packages
     return setup(name=distname, version=version, license=license, url=web,
                  description=description, long_description=long_description,
                  author=author, author_email=author_email,
                  scripts=ensure_scripts(scripts), data_files=data_files,
                  ext_modules=ext_modules,
-                 install_requires=install_requires,
-                 #dependency_links=["http://alain:alain@intranet.logilab.fr/~alain/"],
                  cmdclass={'install_lib': MyInstallLib},
                  **kwargs
                  )