# HG changeset patch # User Denis Laxalde # Date 1473663707 -7200 # Node ID 629d9e35ce28cf56cf376ca7c106c95456027f22 # Parent fe465201febd20526773dfd5026426e7b4333e32 [pkg] Inline call to setup() in setup.py The point of having this "install" function, called in "main" mode is not clear. Better stick to standard practices. diff -r fe465201febd -r 629d9e35ce28 setup.py --- a/setup.py Mon Sep 12 08:41:33 2016 +0200 +++ b/setup.py Mon Sep 12 09:01:47 2016 +0200 @@ -194,21 +194,22 @@ except ImportError: pass -def install(**kwargs): - """setup entry point""" - packages = [modname] + get_packages(join(here, modname), modname) - kwargs['install_requires'] = install_requires - kwargs['zip_safe'] = False - kwargs['packages'] = packages - kwargs['package_data'] = package_data - 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, - cmdclass={'install_lib': MyInstallLib, - 'install_data': MyInstallData}, - **kwargs - ) -if __name__ == '__main__' : - install() +setup( + name=distname, + version=version, + license=license, + url=web, + description=description, + long_description=long_description, + author=author, + author_email=author_email, + packages=[modname] + get_packages(join(here, modname), modname), + package_data=package_data, + scripts=ensure_scripts(scripts), + data_files=data_files, + install_requires=install_requires, + cmdclass={'install_lib': MyInstallLib, + 'install_data': MyInstallData}, + zip_safe=False, +)