setup.py
branchtls-sprint
changeset 1802 d628defebc17
parent 0 b97547f5f1fa
child 1977 606923dff11b
equal deleted inserted replaced
1801:672acc730ce5 1802:d628defebc17
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 # pylint: disable-msg=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
     2 # pylint: disable-msg=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
     3 #
     3 #
     4 # Copyright (c) 2003 LOGILAB S.A. (Paris, FRANCE).
     4 # Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE).
     5 # http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 # http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 #
     6 #
     7 # This program is free software; you can redistribute it and/or modify it under
     7 # This program is free software; you can redistribute it and/or modify it under
     8 # the terms of the GNU General Public License as published by the Free Software
     8 # the terms of the GNU General Public License as published by the Free Software
     9 # Foundation; either version 2 of the License, or (at your option) any later
     9 # Foundation; either version 2 of the License, or (at your option) any later
    54 except ImportError:
    54 except ImportError:
    55     ext_modules = None
    55     ext_modules = None
    56 
    56 
    57 BASE_BLACKLIST = ('CVS', 'debian', 'dist', 'build', '__buildlog')
    57 BASE_BLACKLIST = ('CVS', 'debian', 'dist', 'build', '__buildlog')
    58 IGNORED_EXTENSIONS = ('.pyc', '.pyo', '.elc')
    58 IGNORED_EXTENSIONS = ('.pyc', '.pyo', '.elc')
    59     
    59 
    60 
    60 
    61 def ensure_scripts(linux_scripts):
    61 def ensure_scripts(linux_scripts):
    62     """
    62     """
    63     Creates the proper script names required for each platform
    63     Creates the proper script names required for each platform
    64     (taken from 4Suite)
    64     (taken from 4Suite)
   150             else:
   150             else:
   151                 base = modname
   151                 base = modname
   152             for directory in include_dirs:
   152             for directory in include_dirs:
   153                 dest = join(self.install_dir, base, directory)
   153                 dest = join(self.install_dir, base, directory)
   154                 export(directory, dest)
   154                 export(directory, dest)
   155         
   155 
   156 def install(**kwargs):
   156 def install(**kwargs):
   157     """setup entry point"""
   157     """setup entry point"""
   158     if subpackage_of:
   158     if subpackage_of:
   159         package = subpackage_of + '.' + modname
   159         package = subpackage_of + '.' + modname
   160         kwargs['package_dir'] = {package : '.'}
   160         kwargs['package_dir'] = {package : '.'}
   175                  data_files=data_files,
   175                  data_files=data_files,
   176                  ext_modules=ext_modules,
   176                  ext_modules=ext_modules,
   177                  cmdclass={'install_lib': MyInstallLib},
   177                  cmdclass={'install_lib': MyInstallLib},
   178                  **kwargs
   178                  **kwargs
   179                  )
   179                  )
   180             
   180 
   181 if __name__ == '__main__' :
   181 if __name__ == '__main__' :
   182     install()
   182     install()