-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build to a binary #1
Comments
Hi @flohw ,
at https://github.com/boi4/dynwalls/blob/master/dynwalls/systemd.py#L34. If you want you can check out which Environment variables are necessary for (2.) and maybe add some script which generates the single executable for (1.) and create a pull request. If you are new to python I can help you. Cheers, Jan |
Thank you for the anwser. I will make a PR for the second issue, I can handle that 🙂 I will take a look to create a binary. Maybe we can create github actions after that. Never tried this feature 🙂 |
Sounds cool 👍 never tried it myself either 😄 |
I thought about it and think that creating a python package (https://packaging.python.org/tutorials/packaging-projects/) might be a solution to the problem. |
I am not a python developer (PHP instead) but have some basics of the environment and ecosystem and wanted to learn about it for years. Maybe this project is a good start 🙂 I will look into this packaging process as it looks like it solves both issues: use dynwalls as a binary and make it available to pip. Is it still required to run |
I am not that familiar with the whole packaging process either, so it's a win-win: we learn more about the packaging and it gets easier to install and use the tool. 🎉 About your side question: As far as I know, python2 support has been officially dropped earlier this year and at least on my Arch-Linux Laptop, the python command invokes python3. However it's the same problem as with using new programming language features (if you use the old way of doing things your software is compatible with both new and old versions). So sticking to python3 in scripts will create (at least today) less problems, as , say someone running Debian-stable is still able to use it without python2 being accidentally run. So I would stick to python3 in this project^^ |
Hello @boi4,
I wanted to know if it would be possible to build a binary from the sources ? Even if the binary still requires the two major dependencies exiftool and libheif.
It would ease usage in scripts.
Also, just a side question : I looked at the generated dynwalls.service file and I find all my environment variables dumped into. Is it possible to dump only the required ones ?
Thank you for your script. I will test it more tomorrow 🙂
The text was updated successfully, but these errors were encountered: