Scons
Revision as of 11:30, 20 June 2013 by Troels Emtekær Linnet (talk | contribs)
Contents
When to issue "scons" ? After each update in repository?
This is only necessary if the C files change, or if your Python version changes (for example you switch from Python 2 to Python 3).
This has not happened for a long time and will probably not occur in the lifetime of the relax_disp branch.
User manual
scons user_manual_pdf
clean/remove compilation
scons clean_all del C:\WinPython27\relax_disp_32\target_functions\relax_fit.pyd scons clean_all
Build relax
Open the WinPython Command Prompt
Navigate to the SVN checked out relax folder.
First we need to run the variable setup vcvars32.bat or vcvarsall.bat x86 for Microsoft Visual Studio 11.0, before we can compile.
cd C:\WinPython27\relax_disp "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86_amd64 echo %PROCESSOR_ARCHITECTURE% set PROCESSOR_ARCHITECTURE=x86 echo %PROCESSOR_ARCHITECTURE% scons
(Scons will automatically find CL.exe, and setup compilation for 64 bit.)