-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Windows #491
Comments
Ping @aleksandr-shtaub |
I'll start from the easy ones. Env varsWorks as expected. CMDrem Set value for a variable Name. Note: Should not contain any whitespaces around `=`.
> set Name=Value
rem Get value of variable `Name`.
> echo %Name%
Value or PowerShell# Set value for a variable Name. Note: powershell have types, so use `""` for a string type.
> $Env:Name = "Value"
# Get value of variable.
> echo $Env:Name
Value Example# test.py
import os
print(os.environ.get("Greeter")) > $Env:Greeter = "Hello!"
> python -m test
Hello! PathsUnix: Consider using Signals
SubprocessDifferent resolving of executable path (2)We should use full paths or
|
Hello friends, can you please clarify if it is possible to run this project under windows? This isn't clear for me right now. I only care about a test/dev environment (my production is on linux). If it is possible can you recommend me how ? Right now, when trying to run the worker under windows I'm getting the following error:
|
It's untested. If it works, it's mainly by chance, and if it doesn't but you see how to fix it, we accept pull requests. If anyone is willing to step up and maintain the lib under Windows (e.g. accept to be pinged whenever something comes up), I'll be happy to share the keys and call the project officially supporting Windows :) I don't have a windows machine (well, not really). |
I did some quick tests and found out that two changes are needed for this to run on windows (at least for dev):
1 is simple however I can't understand the implications of 2. Let's suppose we don't do anything on TIA |
Signals are used so that when the (Unix-based) OS informs procrastinate it needs to stop gracefully. Without signal, when you interrupt (ctrl+c, sigint) the program, or the process manager wants to stop it (sigterm), it would stop immediately, halfway through running jobs. Thanks to signals instead, we continue running but stop taking new jobs and halts when all running jobs are done (modulo various timeouts) |
@ewjoachim thank youfor the explanation. As I understand this project can be used for development in Windows with very minor changes (apply the |
It would be possible, but this doesn't say who does it :) I'm running my own contribution time on a limited schedule at the moment, so it's somehow complicated for me to commit on doing the PR, especially since I wouldn't be able to test that it works correctly. On the other hand, of you want to submit a PR, it will be much easier for me (or another maintainer) to review and merge it 😃 |
Hello @ewjoachim I understand the problem. If you are willing to accept such a PR, i.e no proper windows support but support for development under windows I'd be happy to test the needed changes on my development environment and provide a PR. |
The text was updated successfully, but these errors were encountered: