-
Notifications
You must be signed in to change notification settings - Fork 27
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
Port important files to fish
#82
Conversation
Also has a run_me.[fi]sh which serves as a README for `bin`, I guess. I might port the other scripts if I find them useful.
I don't want to duplicate all of the shell scripts. Why not just improve the existing scripts if there are changes to be made? Alternatively if the shell scripts are not compatible with fish then perhaps migrate them to Python instead. Longer term it would be better to move away from most of these scripts but the way to do that is first to change build system #52. The reason that I haven't done much to improve these scripts is just because they should really be commands that call into a build system i.e. most of this code should really be in meson files. |
Ah, sorry for that. Yes, my main intent was just to make it compatible with both bash and fish, or more precisely just pushing the translations I have made. Translating to Python would work, but I will have to look into it, I am not extremely familiar with it. As for new build systems, I will leave it for others. I will close this for now then :) |
Adding Apart from Python scripts would be better than a shell scripts though because it is better to avoid using shell scripts for anything more than just putting together a few commands. Anyone looking to build python-flint needs to have Python installed anyway so it is not an issue in that sense. We would not have had this bug if Python was being used instead of shell scripts: #57 |
Oh yes, you are correct 🤦 For a Python script, would something like this script I wrote suffice? Not sure if that is what you mean for a Python installation script? I am inexperienced with these things but I can try :D Of course replace the print statements with |
Yes, that's the sort of thing I was thinking. I think that print statements are fine but I would use argparse to add command line options for all things. It should support all of the things that are currently supported by
The script also needs to be able to run on Linux, OSX and Windows in the msys2 shell. If the script has non-stdlib dependencies (e.g. requests) then their should be instructions for installing those somewhere or a requirements.txt if there are many. |
Okay! I will work on it. |
The build_variables.sh file could also be removed and the versions could be set at the top of the new Python script. |
I have ported
activate.sh
(important)coverage.sh
build_inplace.sh
(important)build_variables.sh
build_dependencies_unix.sh
(very important)to
fish
, and also added a README for it (atrun_me.sh
andrun_me.fish
).activate.fish
doesn't behave the same asactivate.sh
but I don't think anyone cares.