Time to update your computer's Environmental Variables:
For System Variables, click New. Then add:
PYTHONPATH=C:\Python33\Lib\;C:\Python33\Lib\site-packages\
Select the System Variable PATH, click Edit.
C:\Python33;C:\Python33\Lib\site-packages\PyQt4\bin; to the front of it, like so: PATH=C:\Python33;C:\Python33\Lib\site-packages\PyQt4\bin;etc.Download and run distribute_setup.py which will install distribute package, which provides easy_install tool.
Time to install additional Python libraries.
cmd then cd \Python33\Tools\Scripts.Enter:
easy_install Pygments easy_install ElementTree easy_install Markdown easy_install Markups
Download and unpack ReText
ReText\icons foldercmd then cd to the ReText folder. Then enter: python3 retext.pyIf you wish to ReText to have a Shortcut to start it. Then you can pin it to your Start menu, copy to your Desktop or Quick Launch, etc.
C:\python33\pythonw.exe retext.py's path ; Run = minimized ; Change Icon (to whatever you like).If you wish for the python shell box to not appear, you should follow the USB Stick Batch file instructions at the moment.
C:\python33 to USB Stick, say U:\python33Create the following BAT file: retext.bat
REM ReText Startup batch file REM ------------------------- REM determine drive letter of batchfile for /f "delims=\" %%d in ('cd') do set curdrv=%%d echo %curdrv% REM Set ENVs using current drive letter if ENVs not set for USB Sticks REM REM them out if you have the ENVs set set PYTHONPATH=%curdrv%\Python33\Lib;%curdrv%\Python33\Lib\site-packages set PATH=%curdrv%\Python33;%curdrv%\Python33\Lib\site-packages\PyQt4\bin;%PATH% REM Start ReText start /B %curdrv%\Python33\pythonw.exe %CD%\retext.py
Right-click drag-n-drop the retext.bat and select "Create shortcuts here"
easy_install requires an internet connection. You're on your own dealing with a proxy. As there's really no Registry Entries, you could install else where and copy to USB Stick and create the batch file.
Dmitry Shachnev
2012-03-13
Now that ReText supports Python 3, this guide needs to be updated to use Python 3.2 instead of 2.7.
I've fixed some minor issues now and updated some links.
Anonymous
2012-04-28
Why not use py2exe (http://www.py2exe.org/) to make binaries for Windows users? They could just run ReText like a regular program, or you could even make an installer (I think there is an option for that). No need for them to install libraries, you can package them into your EXE.
Dmitry Shachnev
2012-04-29
The reason is the same as why I don't create RPMs for Linux and DMGs for OS X — I just don't have enough time and resources to do that.
However, I'll appreciate if someone other will do that.
Tim Benke
2012-12-20
Actually I like the current distribution format, because I can easily make small adjustments in the code. I was using some other Python WriteRoom-clone and it a hassle to get to the actual code just to disable some annoying dialogs...
Anonymous
2012-05-28
Download and install PyQt for Python 2.7 from http://www.riverbankcomputing.co.uk/software/pyqt/download.
You will want to drop the period of the end of the link
Dmitry Shachnev
2012-05-31
Thanks, fixed the link!
Anonymous
2012-12-23
If you use pythonw.exe instead of python.exe, the command prompt window won't show.
So the shortcut's target should look something like this:
C:\Python33\pythonw.exe C:\Path\to\ReText\retext.py
Dmitry Shachnev
2012-12-24
Thanks, I've updated the post.
Anonymous
2013-01-27
Found a typo... Please change
PYTHONPATH=C:\Python\Lib\;C:\Python\Lib\site-packages\
to
PYTHONPATH=C:\Python33\Lib\;C:\Python33\Lib\site-packages\
Thanks (great program!)