Replies: 7 comments 6 replies
-
Maybe this could help as a start point: https://forum-raspberrypi.de/forum/thread/58084-pishrink-nice-tool-aber-leider-nicht-maintained/?postID=551890#post551890 Actually, there are not enough checks. |
Beta Was this translation helpful? Give feedback.
-
I think it's a great idea, but I would focus first on solving all the problems in the bash version. Plus, I'm a fan of cross-platform stuff (Linux, macOS, and Windows). In Python I believe it will be possible to develop something cross-platform, or using Docker as the solution I already proposed: PiShrink dockerized. |
Beta Was this translation helpful? Give feedback.
-
About the open PRs, maybe a documentation with PR option in a DEV branch would be useful. We have to find a way to create test scripts as well. |
Beta Was this translation helpful? Give feedback.
-
Why to program the trappings in Python to call programs with their arguments, where Bash would be closer and the "natural environment" of these programs. I don't understand that! By the way, this would not be cross-platform in principle either. ;) |
Beta Was this translation helpful? Give feedback.
-
As someone who has to "deal" with newcomers in the Raspberry Pi world almost every day and they often don't understand, especially in relation to Python, that there is a difference between versions 2 and 3 and modules would have to be installed explicitly for the user or globally, I don't imagine the vision to implement PiShrink in Python to be that easy. To stay with Bash and maintain / improve that would be IMHO more straightforward. In any case, from my experience, the existing users will prefer that rather than having to switch to Python. That's at least my opinion on this topic. |
Beta Was this translation helpful? Give feedback.
-
a rewrite in python won't make the script more cross-platform as you have to call several linux-specific commands via |
Beta Was this translation helpful? Give feedback.
-
Closing this, most people preferred bash and reviewing the code makes me thing we won't get too many benefits switching to Python so it won't be worth the effort. |
Beta Was this translation helpful? Give feedback.
-
PiShrink is suffering from what I feel like is a bunch of issues coming with writing complex shell scripts. I would like to explore the idea of rewriting it in python to be more organized, maintainable, and stable. Given that all modern Linux distros come with python by default I think python would be a fine language to rewrite it in to still make it easy to get running. But I would love to hear what you all think
29 votes ·
Beta Was this translation helpful? Give feedback.
All reactions