setup.py
brancholdstable
changeset 8123 a4e667270dd4
parent 7879 9aae456abab5
child 7896 4c954e1e73ef
equal deleted inserted replaced
7863:d8bb8f631d41 8123:a4e667270dd4
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 # pylint: disable=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
     2 # pylint: disable=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
     3 #
     3 #
     4 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     4 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     5 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 #
     6 #
     7 # This file is part of CubicWeb.
     7 # This file is part of CubicWeb.
     8 #
     8 #
     9 # CubicWeb is free software: you can redistribute it and/or modify it under the
     9 # CubicWeb is free software: you can redistribute it and/or modify it under the
   177 
   177 
   178 # re-enable copying data files in sys.prefix
   178 # re-enable copying data files in sys.prefix
   179 if USE_SETUPTOOLS:
   179 if USE_SETUPTOOLS:
   180     # overwrite MyInstallData to use sys.prefix instead of the egg directory
   180     # overwrite MyInstallData to use sys.prefix instead of the egg directory
   181     MyInstallMoreData = MyInstallData
   181     MyInstallMoreData = MyInstallData
   182     class MyInstallData(MyInstallMoreData):
   182     class MyInstallData(MyInstallMoreData): # pylint: disable=E0102
   183         """A class that manages data files installation"""
   183         """A class that manages data files installation"""
   184         def run(self):
   184         def run(self):
   185             _old_install_dir = self.install_dir
   185             _old_install_dir = self.install_dir
   186             if self.install_dir.endswith('egg'):
   186             if self.install_dir.endswith('egg'):
   187                 self.install_dir = sys.prefix
   187                 self.install_dir = sys.prefix