[pkg] Get rid of "pydir" in __pkginfo__.py 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 15 Feb 2018 10:26:55 +0100
branch3.26
changeset 12271 1f792d76fca3
parent 12270 0e89483f50a1
child 12272 36032de96867
[pkg] Get rid of "pydir" in __pkginfo__.py Nothing uses this.
cubicweb/__pkginfo__.py
--- a/cubicweb/__pkginfo__.py	Thu Feb 15 10:24:13 2018 +0100
+++ b/cubicweb/__pkginfo__.py	Thu Feb 15 10:26:55 2018 +0100
@@ -19,7 +19,6 @@
 """cubicweb global packaging information for the cubicweb knowledge management
 software
 """
-import sys
 from os import listdir
 from os.path import join
 
@@ -44,13 +43,6 @@
 
 _server_migration_dir = join(modname, 'misc', 'migration')
 
-_pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
-if '--home' in sys.argv:
-    # --home install
-    pydir = 'python' + _pyversion
-else:
-    pydir = join('python' + _pyversion, 'site-packages')
-
 # data files that shall be copied into the main package directory
 package_data = {
     'cubicweb.web.views': ['*.pt'],