[cube dist] fix default setup.py, well we get the cube also installed in lib/python, that may cause pb (eg the email cube for instance). UPDATE YOUR CUBE's setup.py stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Jul 2010 15:21:21 +0200
branchstable
changeset 5929 bd0b98a1086b
parent 5925 a1a334d93439
child 5942 f7768f44b4ac
[cube dist] fix default setup.py, well we get the cube also installed in lib/python, that may cause pb (eg the email cube for instance). UPDATE YOUR CUBE's setup.py
skeleton/setup.py
--- a/skeleton/setup.py	Wed Jul 07 13:13:13 2010 +0200
+++ b/skeleton/setup.py	Wed Jul 07 15:21:21 2010 +0200
@@ -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,