Ticket #45727: relax.patch
File relax.patch, 2.5 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
sconstruct
old new 101 101 SYS = SYSTEM 102 102 103 103 # Mac OS X installation path. 104 INSTALL_PATH = sys.prefix + sep + 'local'104 INSTALL_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'lib' 105 105 106 106 107 107 # All other operating systems. … … 121 121 RELAX_PATH = INSTALL_PATH + sep + 'relax' 122 122 123 123 # Installation path for binaries. 124 BIN_PATH = INSTALL_PATH+ sep + 'bin'124 BIN_PATH = '@DEST_ROOT@@PREFIX@' + sep + 'bin' 125 125 126 126 # Symbolic link installation path. 127 127 SYMLINK = BIN_PATH + sep + 'relax' 128 128 129 129 130 131 130 # The distribution files. 132 131 ######################### 133 132 … … 570 569 'relax_fit.c'] 571 570 572 571 # Construct the python include path (for Python.h). 573 py_include_minpath = sys.prefix + path.sep + 'include'572 py_include_minpath = '@PYTHON_INCL@' + path.sep + '..' 574 573 py_include_fullpath = py_include_minpath + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]` 575 574 576 575 # Test if Python.h resides here. … … 586 585 py_include_fullpath = environ['PYTHON_INCLUDE_DIR'] 587 586 588 587 # Construct the python bin path. 589 py_bin_minpath = sys.prefix+ path.sep + 'bin'588 py_bin_minpath = '@PREFIX@' + path.sep + 'bin' 590 589 py_bin_fullpath = py_bin_minpath + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]` 591 590 592 591 # Relaxation curve fitting build environment. -
relax
old new 1 #! /usr/bin/env python1 #!@PYTHON_BIN@ 2 2 3 3 # Import the relax module. 4 4 import relax -
scons/install.py
old new 111 111 ############### 112 112 113 113 # Run relax to create the *.pyc files. 114 print("\nCreating the byte-compiled *.pyc files.")115 python_path = sys.prefix + path.sep + 'bin' + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]`116 cmd = "cd %s; %s -m compileall . ; %s -O -m compileall ." % (env['RELAX_PATH'], python_path, python_path)117 print(cmd)118 system(cmd)114 #print("\nCreating the byte-compiled *.pyc files.") 115 #python_path = sys.prefix + path.sep + 'bin' + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]` 116 #cmd = "cd %s; %s -m compileall . ; %s -O -m compileall ." % (env['RELAX_PATH'], python_path, python_path) 117 #print(cmd) 118 #system(cmd) 119 119 120 120 # Final printout. 121 121 print("\n\n\n")