Changeset 2135

Show
Ignore:
Timestamp:
09/19/07 23:33:30 (10 months ago)
Author:
arj..@yirdis.nl
Message:

Attempt to fix issue [81].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/branches/gaphor-0.12/setup.py

    r2130 r2135  
    88""" 
    99 
    10 VERSION = '0.12.3
     10VERSION = '0.12.4
    1111 
    1212import os 
     
    2828 
    2929LINGUAS = [ 'ca', 'es', 'nl', 'sv' ] 
     30 
     31from setuptools.command.build_py import build_py 
     32 
     33class build_py_with_sub_commands(build_py): 
     34 
     35    def run(self): 
     36        for cmd_name in self.get_sub_commands(): 
     37            self.run_command(cmd_name) 
     38 
     39        build_py.run(self) 
     40 
     41build_py_with_sub_commands.sub_commands.append(('build_uml', None)) 
     42 
    3043 
    3144class build_doc(Command): 
     
    161174 
    162175    cmdclass = { 
     176              'build_py': build_py_with_sub_commands, 
    163177              'build_uml': build_uml, 
    164178              'build_mo': build_mo, 
  • gaphor/branches/gaphor-0.12/utils/command/build_uml.py

    r2130 r2135  
    6161 
    6262 
    63 # Wrap setuptools' build_py command, so we're sure build_uml is performed 
    64 # before the build_py code. 
    65  
    66 from setuptools.command.build_py import build_py 
    67  
    68 def build_py_run(self, run=build_py.run): 
    69     for cmd_name in self.get_sub_commands(): 
    70         self.run_command(cmd_name) 
    71  
    72     run(self) 
    73      
    74 build_py.run = build_py_run 
    75  
    76 build_py.sub_commands.append(('build_uml', None)) 
    77  
    7863# vim:sw=4:et