[pkg] remove useless install_data from setup()
authorDavid Douard <david.douard@logilab.fr>
Wed, 14 May 2014 11:38:26 +0200
changeset 1514 9dd6abde81e7
parent 1513 c6bcb8c3f96d
child 1515 2a12802efe66
[pkg] remove useless install_data from setup() preprocessors (and checkers) can naw be just copied as data files.
setup.py
--- a/setup.py	Tue May 13 11:52:45 2014 +0200
+++ b/setup.py	Wed May 14 11:38:26 2014 +0200
@@ -119,17 +119,6 @@
             raise
     walk(from_dir, make_mirror, None)
 
-# write required share/cubicweb/cubes/__init__.py
-class MyInstallData(install_data.install_data):
-    """A class That manages data files installation"""
-    def run(self):
-        """overridden from install_data class"""
-        install_data.install_data.run(self)
-        path = join(self.install_dir, 'share', 'narval', 'preprocessors', '__init__.py')
-        ini = open(path, 'w')
-        ini.write('# Apycot preprocessors directory\n')
-        ini.close()
-
 class MyInstallLib(install_lib.install_lib):
     """extend install_lib command to handle  package __init__.py and
     include_dirs variable if necessary
@@ -169,8 +158,7 @@
                  scripts = ensure_scripts(scripts),
                  data_files = data_files,
                  ext_modules = ext_modules,
-                 cmdclass = {'install_lib': MyInstallLib,
-                             'install_data': MyInstallData,},
+                 cmdclass = {'install_lib': MyInstallLib},
                  **kwargs
                  )