Changes

Jump to navigation Jump to search

Installation windows Python x86-32 minGW

3,154 bytes added, 09:46, 21 October 2020
m
= {{Warning|STOP =: This does not work yet.}}
= Download preparation =This page is not completed! It will not work!guide should follow [http://www.nmr-relax.com/windows_devel.html Homepage for MS Windows development platform]
First: Download these packages, do not unpack them yet.
# (.exe): wxPython: http://www.lfd.uci.edu/~gohlke/pythonlibs/#wxpython
# (.exe): scons: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scons
# (.zip): minfx: http://download.gna.org/minfx/
# (.zip): bmrblib: http://download.gna.org/bmrblib/
'''take the win32 bit versions.''' = Install python and necessary packages = I recommend to install a python distribution which is packed with several packages already. == Winpython == HowYou could consider winpython, which includes Ipython, numpy, scipy. matplotlib etc.:<br>[https://code.google.com/p/winpython Homepage] Make a folder: '''C:\WinPython27'''.<br>Run the downloaded winpython exe file, and extract to: '''C:\WinPython27'''.<br>Open '''WinPython Control Panel''' in ex. '''C:\WinPython27\WinPython-32bit-2.7.x'''<br>Drag the 4 above mentioned packakes, into the window, and install the packages.<br>For a command window, use the '''WinPython Command Prompt''' found in '''C:\WinPython27\WinPython-32bit-2.7.x''', which fixes path issues for finding python. === Trick to set variables in cmd ===Make a folder '''own''' in '''C:\WinPython27\WinPython-32bit-2.7.x\scripts''' and <br>copy '''C:\WinPython27\WinPython-32bit-2.7.x\scripts\env.bat''' to '''C:\WinPython27\WinPython-32bit-2.7.x\scripts\own\pytming.bat'''<br>and copy '''C:\WinPython27\WinPython-32bit-2.7.x\scripts\cmd.bat''' to '''C:\WinPython27\WinPython-32bit-2.7.x\scripts\own\cmdpytming.bat'''<br> Modify '''pytming.bat''' from<source lang="python">set WINPYDIR=%~dp0..\python-2.7.5</source>to include '''..\'''<source lang="python">set WINPYDIR=%~dp0..\..\python-2.7.5</source> Modify '''cmdpytming.bat''' from<source lang="python">call %~dp0env.bat</source>to<source lang="python">call %~dp0pytming.bat</source> === Trick to add .bat files to PATH ===If you have permission to change the Environment Variables in windows, you can add the '''pytming.bat''' and '''cmdpytming.bat''' to your path.<br>Right click Computer -> properties -> Advanced system settings -> Environment Variables -> User variables -> Edit: PATH <br>Add to end of the Variable value: ;C:\WinPython27\WinPython-32bit-2.7.x\scripts\ownIn any folder, hold "Shift" and right click, "Open command window here". Write:<source lang="powershell">pytmingpython</source> = Install minGW =Download [http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/ mingw-get-inst], and run it. [http://www.mingw.org/wiki/Getting_Started If you need more help, read this], but you should just do this.
# Install to: C:\MinGW
# Take all options when installing (about 450 MB)
# Take the "pre" package option
After install, edit '''C:\MinGW\msys\1.0\msys.bat'''. <br>Insert at second line a call to our variables:<source lang="textpowershell">It`ll use mingw compiler with msvc options in this case@echo offcall C:\WinPython27\WinPython-32bit-2.7.5.1\scripts\env. Will not it? batI think we have to use env = Environmentrem Copyright (tools = ['default'C): 2001, 2002, 2003, 2004,'mingw']) 2005 Earnie Boydinstead. </source>
env = Environment(tools Install Subversion checkout of relax = [{{historical svn}}Install a subversion client. For example: http://tortoisesvn.net/ Right click in winpython folder: 'mingw'])'C:\WinPython27''', and select '''SVN Checkout'''. Write the path: svn://svn.gna.org/svn/relax/branches/relax_disp relax_disp_32_ming = Build relax = Open the '''MinGW Shell''' from the start menu. <br>Write here: NOTE, you can paste into the terminal, using the little icon in top left corner, Edit, Paste<source lang="bash">cd /c/WinPython27/relax_disp_32_mingpython /c/WinPython27/WinPython-32bit-2.7.5.1/python-2.7.5/Scripts/scons.py install
</source>
== See also == [http[Category://www.bozzograo.net/radiancewiki/doku.php?id=how_to_compile_radiance_using_the_mingw_tools_and_scons Guide to radiance compilationInstallation]]
Trusted, Bureaucrats
4,223

edits

Navigation menu