Ticket #34890: relax.patch
File relax.patch, 2.5 KB (added by howarth@…, 12 years ago) |
---|
-
relax
old new 1 #! /usr/bin/env python1 #!@PREFIX@/bin/python2.7 2 2 3 3 # Import the relax module. 4 4 import relax -
sconstruct
old new 99 99 SYS = SYSTEM 100 100 101 101 # Mac OS X installation path. 102 INSTALL_PATH = sys.prefix + sep + 'local'102 INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib' 103 103 104 104 105 105 # All other operating systems. … … 119 119 RELAX_PATH = INSTALL_PATH + sep + 'relax' 120 120 121 121 # Installation path for binaries. 122 BIN_PATH = INSTALL_PATH+ sep + 'bin'122 BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin' 123 123 124 124 # Symbolic link installation path. 125 125 SYMLINK = BIN_PATH + sep + 'relax' 126 126 127 127 128 129 128 # The distribution files. 130 129 ######################### 131 130 … … 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("\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) 120 120 121 121 # Final printout. 122 122 print("\n\n\n")