[skeleton] Use distname directly in setup.py
distname is part of required metadata and modname cannot actually be used in
place of it.
--- a/cubicweb/skeleton/setup.py.tmpl Wed Sep 14 17:03:46 2016 +0200
+++ b/cubicweb/skeleton/setup.py.tmpl Wed Sep 14 17:12:37 2016 +0200
@@ -37,7 +37,7 @@
exec(f.read(), __pkginfo__)
# get required metadatas
-modname = __pkginfo__['modname']
+distname = __pkginfo__['distname']
version = __pkginfo__['version']
license = __pkginfo__['license']
description = __pkginfo__['description']
@@ -50,7 +50,6 @@
long_description = f.read()
# get optional metadatas
-distname = __pkginfo__.get('distname', modname)
data_files = __pkginfo__.get('data_files', None)
dependency_links = __pkginfo__.get('dependency_links', ())