Ticket #34238: relax.patch
File relax.patch, 2.2 KB (added by howarth@…, 13 years ago) |
---|
-
relax
old new 1 #! /usr/bin/env python1 #!@PREFIX@/bin/python2.7 2 2 3 3 ############################################################################### 4 4 # # -
sconstruct
old new 98 98 SYS = SYSTEM 99 99 100 100 # Mac OS X installation path. 101 INSTALL_PATH = sys.prefix + sep + 'local'101 INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib' 102 102 103 103 104 104 # All other operating systems. … … 118 118 RELAX_PATH = INSTALL_PATH + sep + 'relax' 119 119 120 120 # Installation path for binaries. 121 BIN_PATH = INSTALL_PATH+ sep + 'bin'121 BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin' 122 122 123 123 # Symbolic link installation path. 124 124 SYMLINK = BIN_PATH + sep + 'relax' 125 125 126 126 127 128 127 # The distribution files. 129 128 ######################### 130 129 … … 515 514 cflags = '/nologo /I\"' + py_include_minpath + '\" /I\"' + numpy_path + '\"' 516 515 else: 517 516 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' % arch521 517 522 518 # Python library path. 523 519 libpath = '' … … 537 533 '-undefined', 'dynamic_lookup' 538 534 ] 539 535 540 # Force all architectures.541 for arch in ['i386', 'ppc', 'x86_64']:542 lnflags.append('-arch')543 lnflags.append(arch)544 545 536 # Set up the environment. 546 537 env.Append(LINKFLAGS = lnflags) 547 538 env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS') -
scons/install.py
old new 112 112 ############### 113 113 114 114 # 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") 117 117 118 118 # Final print out. 119 119 print("\n\n\n")