retext
retext copied to clipboard
Any chance of ReText officially supporting windows?
I realize Windows is not officially supported.
- Windows is widely used for desktop and ReText being Linux only prevent a huge user base from using this awesome piece of software, I know it work on Windows with some hacks here and there but it's still not officially supported nor it work in full mode/power.
- Also both QT and Python are cross-platform so there shouldn't be a problem to support Windows or even both Windows and macOS.
Hi!
Installing ReText on Windows has become very easy during the last years. All you need is having Python and running pip install ReText (just like on other platforms).
Windows is a supported platform, and the docs say it is not officially supported just because I am not using Windows myself so I cannot test every release there to make sure that everything works fine. However, it should still work fine because, as you say, both Qt and Python are cross-platform. The same applies to macOS and other platforms that I don’t use.
You say that it needs hacks and does not work in full mode. Can you please explain what you mean? If there are any particular issues, reports about them are welcome — I will see what I can do.
Pinging @Shen897
You say that it needs hacks and does not work in full mode. Can you please explain what you mean? If there are any particular issues, reports about them are welcome — I will see what I can do.
I have just tried right now, and i can confirm, Retext do install and work on Windows 10 (tried and tested on 2 different x86 64bit machines, one physical, one is a vm).
Install steps:
1 - open console (cmd), type "python" 2 - if python is not installed, it will lead you to the ms app store and you can install from there. AFAIK the python installed this way is fully supported by core python team, the version is fairly recent (3.11 was just released, the installed version says "Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32". 3 - you can create a venv with "python -m venv .\project-venv". Beware, its windows so look out for backslashes. Venv activation is done be executing '.\project-venv\Scripts\activate.bat' 4 - in the venv, type 'pip install retext', and a few minutes later install is complete 5 - you can launch retext by typing "retext", or you can find a binary under ".\project-venv\Scripts\retext.exe"
The only "hack" is needed, that if a directory has a space in its name, and it happens to be the python install directory, the wrapper scripts probably breaks and when you type retext at the command line, you get the prompt back. The solution is to create a directory path w/o spaces like "C:\retext" and do the install there. It seems to me it is specific to the python windows port, rather than retext itself, maybe a short mention in the docs would be useful for some users.
There are ways to bundle a Python-based project as a standalone executable for Windows (yt-dlp is a famous example), it's just that it was not seriously considered here. Not every developer is able to go beyond writing lines of code and think about solutions for the masses. The key feature of such solutions is accessibility, or a low entry barrier, i.e. give me a hammer, not pieces of wood and metal accompanied by instructions on how to assemble a hammer. ReText turned out to be a niche product to brag about on a resume and nothing more, alas.