Changeset 242


Ignore:
Timestamp:
Jun 19, 2011, 10:28:52 PM (6 years ago)
Author:
guillaume
Message:

[fix] setup.py: fix paths both in install.finalize_options() and install.run()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mother/trunk/setup.py

    r241 r242  
    4545
    4646class _install(install):
    47         def finalize_options(self):
    48                 install.finalize_options(self)
    49 
     47        def _fix_paths(self):
    5048                self.install_apps = self.install_base
    5149                # manage --prefix option (i.e is set when in an environment created with *virtualenv*)
     
    5957                                setattr(self, 'install_'+p, os.path.join(self.root, ensure_relative(getattr(self, 'install_'+p))))
    6058               
     59        def finalize_options(self):
     60                install.finalize_options(self)
     61                self._fix_paths()
     62
     63        def run(self):
     64                self._fix_paths()
     65                install.run(self)
     66
    6167
    6268class _install_lib(install_lib):
Note: See TracChangeset for help on using the changeset viewer.