Ticket #22230: relax.patch

File relax.patch, 2.1 KB (added by howarth@…, 15 years ago)
  • relax

    old new  
    1 #! /usr/bin/env python
     1#! /usr/bin/env python2.6
    22
    33###############################################################################
    44#                                                                             #
  • scons/install.py

    old new  
    112112    ###############
    113113
    114114    # Run relax to create the *.pyc files.
    115     print "\nRunning relax to create the byte-compiled *.pyc files."
    116     system(env['SYMLINK'] + " --test")
     115    # print "\nRunning relax to create the byte-compiled *.pyc files."
     116    # system(env['SYMLINK'] + " --test")
    117117
    118118    # Final print out.
    119119    print "\n\n\n"
  • sconstruct

    old new  
    9494    SYS = SYSTEM
    9595
    9696    # Mac OS X installation path.
    97     INSTALL_PATH = sys.prefix + sep + 'local'
     97    INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib'
    9898
    9999
    100100# All other operating systems.
     
    111111###############
    112112
    113113# Relax installation directory.
    114 RELAX_PATH = INSTALL_PATH + sep + 'relax'
     114RELAX_PATH = INSTALL_PATH + sep + 'relax'
    115115
    116116# Installation path for binaries.
    117 BIN_PATH = INSTALL_PATH + sep + 'bin'
     117BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin'
    118118
    119119# Symbolic link installation path.
    120120SYMLINK = BIN_PATH + sep + 'relax'
    121121
    122122
    123 
    124123# The distribution files.
    125124#########################
    126125
     
    486485
    487486        # Catch Mac OS X and send the correct command line options to the linker (these may become redundant as SCons improves).
    488487        if env['PLATFORM'] == 'darwin':
    489             env.Append(LINKFLAGS = ['-bundle', '-bundle_loader', sys.prefix + path.sep + 'bin' + path.sep + 'python', '-dynamic'])
     488            env.Append(LINKFLAGS = ['-bundle', '-bundle_loader', sys.prefix + path.sep + 'bin' + path.sep + 'python2.6', '-dynamic', '-undefined', 'dynamic_lookup'])
    490489            env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
    491490            env['SHLIBSUFFIX'] = '.so'
    492491