Changes

Jump to navigation Jump to search
svn://svn.gna.org/svn/relax/trunk
svn://svn.gna.org/svn/relax/branches/relax_disp
 
== Bugfix scons for 32bit building ==
Due to a bug, versions of scons '''<=2.3''' should alter a line in:<br>
'''PYTHON INSTALL FOLDER\Lib\site-packages\scons-2.3.0\SCons\Tool\MSCommon\vc.py'''
 
Line '''364''':
<source lang="python">
if not req_target_platform and target_platform in ('amd64','x86_64'):
try_target_archs.append('x86')
</source>
Should be:
<source lang="python">
#if not req_target_platform and target_platform in ('amd64','x86_64'):
# try_target_archs.append('x86')
if target_platform in ('amd64','x86_64'):
try_target_archs.append('x86')
print "requested", req_target_platform
print "target", target_platform
print "try", try_target_archs
</source>
 
If not fixing the bug, you will get:
<source lang="powershell">
C:\WinPython27\relax_disp>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
 
###########################
# Compiling the C modules #
###########################
Building the relaxation curve fitting module 'target_functions\\relax_fit.pyd'
 
cl /Fotarget_functions\c_chi2.obj /c target_functions\c_chi2.c /nologo /I"C:\Win
Python27\WinPython-32bit-xxx\scripts\..\python-xxx\include"
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [target_functions\c_chi2.obj] Error 1
scons: building terminated because of errors.
</source>
= Build relax =

Navigation menu