Open bogen85 opened 3 years ago
@bogen85 Let's proceed and rewrite it in python. You can start by creating the CudaText_up_py repo just now. Let's have the additional cudaup repo. we will merge or not merge it later.
Alright, sounds good. I'll create my own CudaText_up_py
repo and proceed from there.
@Alexey-T I created CudaText_up_py
It seems to work on FreeBSD and Linux, but I'm sure I have permissions and other issues to work out, plus I've not exercised the "install packages to Lazarus" as I've not make my own custom Lazarus directory.
As such, I would consider this work in progress as I work out any issues.
For now see ./cudaup.sh --help
until I get a working README.md
Python to use is automatic, ./cudaup.sh finds a compatible one and uses it (but one can be specified). I will document that in the README.md.
One does not need to be in the CudaText_up_py directory to run the script, one can provide the complete path to the script (the other files/folders it comes with must reside with the the script.) I don't have it working if it is in PATH yet, but I will add the ability to run it from anywhere if it is the PATH.
By default the working directory (where src is created/used) is the current directory, but a different one can be specified.
Great! I will try it soon.
Hi, guys. Tried CudaText_up_py for MacOS.
opened an issue here: https://github.com/bogen85/CudaText_up_py/issues/1
I got cudatext to build on freebsd by hacking cudaup.sh in a non-maintainable way.
Only needed to install a few packages to get the build via
./cudaup.sh -o freebsd -m
to completeI would like to fix this and submit a PR that makes cudaup portable on Linux and FreeBSD, but I'd almost prefer to rewrite it in python (so it is not relying on external commands like getopt that may not be portable between Linux and FreeBSD) and just have cudaup.sh be a wrapper for cudaup.py, and determine which python to execute by checking which python versions are installed, and choosing the latest (or something like that, to be determined...).
So I'd like to discuss the most agreeable way to proceed on this.