ide
ide copied to clipboard
Fix Python for MacOS and Ubuntu
Currently Python does not work on MacOS and Ubuntu. The installation of Python differs with the installation on Windows, as it is built from source code.
We probably need a new idea on how to integrate Python into Devon IDE on these OS's. There are already some information and hints in the discussions below.
https://github.com/devonfw/ide/issues/948
https://discuss.python.org/t/automation-of-portable-installation-for-python-and-python-based-tools/20256/6
https://justinmayer.com/posts/homebrew-python-is-not-for-you/
Another option could be to use miniconda (originally intended for data science projects). Miniconda in contrast to Anaconda provides a minimal python installation as well as lots of environment management options.
I've already found a repository which provides Windows installation (InnoSetup) exe files as well as Linux and MacOs installation scripts (with SHA256 checksums).
I'm not sure how to extract the setup files on windows from bash though. The extraction using 7zip did not work and using the alternative innoextract will require a new command.
A big problem I see though, will be the mandatory subscription for commercial projects: https://www.anaconda.com/blog/anaconda-commercial-edition-faq
For Mac, we could use the approach from pymac.
https://github.com/sbaack/pymac/blob/72cfe96df849f39983611521a71ffc0070bb7602/commands/install.bash#L88
Using the pkg installer with a ChoiceChangesXML to be able to install the packages from the CLI only (with pre-configured choices like excluded PythonApplications, PythonUnixTools etc.)
We could also generate the ChoiceChangesXML's using the retrieved versions from our url-updater.