Commit 475797bf authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[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.
parent fe465201febd
......@@ -194,21 +194,22 @@ try:
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,
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment