setup.py
changeset 5623 f22708f50213
parent 5396 5105b119edd2
child 6009 f077815932ce
equal deleted inserted replaced
5622:ea2625655baf 5623:f22708f50213
    38     extra['console'] = ['hg']
    38     extra['console'] = ['hg']
    39 
    39 
    40 except ImportError:
    40 except ImportError:
    41     pass
    41     pass
    42 
    42 
       
    43 if os.name in ['nt']:
       
    44     extra['scripts'] = ['hg']
       
    45 else:
       
    46     extra['scripts'] = ['hg', 'hgmerge']
       
    47 
    43 # specify version string, otherwise 'hg identify' will be used:
    48 # specify version string, otherwise 'hg identify' will be used:
    44 version = ''
    49 version = ''
    45 
    50 
    46 class install_package_data(install_data):
    51 class install_package_data(install_data):
    47     def finalize_options(self):
    52     def finalize_options(self):
    76       ext_modules=ext_modules,
    81       ext_modules=ext_modules,
    77       data_files=[(os.path.join('mercurial', root),
    82       data_files=[(os.path.join('mercurial', root),
    78                    [os.path.join(root, file_) for file_ in files])
    83                    [os.path.join(root, file_) for file_ in files])
    79                   for root, dirs, files in os.walk('templates')],
    84                   for root, dirs, files in os.walk('templates')],
    80       cmdclass=cmdclass,
    85       cmdclass=cmdclass,
    81       scripts=['hg', 'hgmerge'],
       
    82       options=dict(py2exe=dict(packages=['hgext']),
    86       options=dict(py2exe=dict(packages=['hgext']),
    83                    bdist_mpkg=dict(zipdist=True,
    87                    bdist_mpkg=dict(zipdist=True,
    84                                    license='COPYING',
    88                                    license='COPYING',
    85                                    readme='contrib/macosx/Readme.html',
    89                                    readme='contrib/macosx/Readme.html',
    86                                    welcome='contrib/macosx/Welcome.html')),
    90                                    welcome='contrib/macosx/Welcome.html')),