Ticket #29980: patch-setup.py.diff

File patch-setup.py.diff, 2.1 KB (added by marc.schlaich@…, 13 years ago)
  • setup.py

    old new  
    377377             'description':'TortoiseHg GUI tools for Mercurial SCM',
    378378             'copyright':thgcopyright,
    379379             'product_version':version},
    380             {'script':'contrib/hg', 
     380            {'script':'contrib/hg',
    381381             'icon_resources':[(0,'icons/hg.ico')],
    382382             'description':'Mercurial Distributed SCM',
    383383             'copyright':hgcopyright,
     
    414414    _data_files += [(os.path.join('share', root),
    415415        [os.path.join(root, file_) for file_ in files])
    416416        for root, dirs, files in os.walk('locale')]
    417     _data_files += [('lib/nautilus/extensions-2.0/python',
    418                      ['contrib/nautilus-thg.py'])]
    419417
    420     # Create a config.py.  Distributions will need to supply their own
    421     cfgfile = os.path.join('tortoisehg', 'util', 'config.py')
    422     if not os.path.exists(cfgfile) and not os.path.exists('.hg/requires'):
    423         f = open(cfgfile, "w")
    424         f.write('bin_path     = "/usr/bin"\n')
    425         f.write('license_path = "/usr/share/doc/tortoisehg/Copying.txt.gz"\n')
    426         f.write('locale_path  = "/usr/share/locale"\n')
    427         f.write('icon_path    = "/usr/share/pixmaps/tortoisehg/icons"\n')
    428         f.write('nofork       = True\n')
    429         f.close()
     418    if sys.platform != 'darwin':
     419        _data_files += [('lib/nautilus/extensions-2.0/python',
     420                         ['contrib/nautilus-thg.py'])]
     421
     422        # Create a config.py.  Distributions will need to supply their own
     423        cfgfile = os.path.join('tortoisehg', 'util', 'config.py')
     424        if not os.path.exists(cfgfile) and not os.path.exists('.hg/requires'):
     425            f = open(cfgfile, "w")
     426            f.write('bin_path     = "/usr/bin"\n')
     427            f.write('license_path = "/usr/share/doc/tortoisehg/Copying.txt.gz"\n')
     428            f.write('locale_path  = "/usr/share/locale"\n')
     429            f.write('icon_path    = "/usr/share/pixmaps/tortoisehg/icons"\n')
     430            f.write('nofork       = True\n')
     431            f.close()
    430432
    431433    return _scripts, _packages, _data_files, _extra
    432434