# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1280224566 -7200
#      Tue Jul 27 11:56:06 2010 +0200
# Node ID e4b7d12a580339786e8593ccb37a6665611f03ae
# Parent  29bd90c73f19921861a2fc6eb13f5459def7f7f6
fix setup.py to avoid junk in site-packages

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -142,12 +142,9 @@
     # install-layout option was introduced in 2.5.3-1~exp1
     elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv:
         sys.argv.remove('--install-layout=deb')
-    kwargs['package_dir'] = {modname : '.'}
-    packages = [modname] + get_packages(os.getcwd(), modname)
     if USE_SETUPTOOLS and install_requires:
         kwargs['install_requires'] = install_requires
         kwargs['dependency_links'] = dependency_links
-    kwargs['packages'] = packages
     return setup(name = distname,
                  version = version,
                  license = license,