Ticket #34890: relax.patch

File relax.patch, 2.5 KB (added by howarth@…, 12 years ago)

updated relax.patch file for relax 2.0.0 packaging

  • relax

    old new  
    1 #! /usr/bin/env python
     1#!@PREFIX@/bin/python2.7
    22
    33# Import the relax module.
    44import relax
  • sconstruct

    old new  
    9999    SYS = SYSTEM
    100100
    101101    # Mac OS X installation path.
    102     INSTALL_PATH = sys.prefix + sep + 'local'
     102    INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib'
    103103
    104104
    105105# All other operating systems.
     
    119119RELAX_PATH = INSTALL_PATH + sep + 'relax'
    120120
    121121# Installation path for binaries.
    122 BIN_PATH = INSTALL_PATH + sep + 'bin'
     122BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin'
    123123
    124124# Symbolic link installation path.
    125125SYMLINK = BIN_PATH + sep + 'relax'
    126126
    127127
    128 
    129128# The distribution files.
    130129#########################
    131130
     
    515514            cflags = '/nologo /I\"' + py_include_minpath + '\" /I\"' + numpy_path + '\"'
    516515        else:
    517516            cflags = '-I' + py_include_fullpath + ' -I' + numpy_path
    518         if env['PLATFORM'] == 'darwin':
    519             for arch in ['i386', 'ppc', 'x86_64']:
    520                 cflags += ' -arch %s' % arch
    521517
    522518        # Python library path.
    523519        libpath = ''
     
    537533                '-undefined', 'dynamic_lookup'
    538534            ]
    539535
    540             # Force all architectures.
    541             for arch in ['i386', 'ppc', 'x86_64']:
    542                 lnflags.append('-arch')
    543                 lnflags.append(arch)
    544 
    545536            # Set up the environment.
    546537            env.Append(LINKFLAGS = lnflags)
    547538            env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
  • scons/install.py

    old new  
    112112    ###############
    113113
    114114    # Run relax to create the *.pyc files.
    115     print("\nCreating the byte-compiled *.pyc files.")
    116     python_path = sys.prefix + path.sep + 'bin' + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]`
    117     cmd = "cd %s; %s -m compileall . ; %s -O -m compileall ." % (env['RELAX_PATH'], python_path, python_path)
    118     print(cmd)
    119     system(cmd)
     115    #print("\nCreating the byte-compiled *.pyc files.")
     116    #python_path = sys.prefix + path.sep + 'bin' + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]`
     117    #cmd = "cd %s; %s -m compileall . ; %s -O -m compileall ." % (env['RELAX_PATH'], python_path, python_path)
     118    #print(cmd)
     119    #system(cmd)
    120120
    121121    # Final printout.
    122122    print("\n\n\n")