Let's talk about Conda

Having trouble installing or compiling FreeCAD? Get help here.
looo
Posts: 2950
Joined: Mon Nov 11, 2013 5:29 pm

Re: Let's talk about Conda

Postby looo » Sun Nov 10, 2019 7:23 am

vocx wrote:
Sun Nov 10, 2019 12:57 am
looo wrote:
Sat Nov 09, 2019 11:34 pm
...And letting this up to the user is also a no no, because code dependent on FreeCAD should run without getting into contact with such details...
I disagree with this. The users should always be accountable for what goes in their system. We cannot treat the users like babies, and hand hold them entirely. I think if the documentation is good enough, a competent user should be able to figure things out when it comes to dependencies, paths, and things of that nature. With that said, if this Conda thing really improves things as you say, fine, I'm not opposed to that; I just think the user should have some semblance of competence to start.
You must misunderstand something. This is about the python interface and not about treating users as babies. There are rules for providing cross-platform python interfaces and not aligning to these rules will introduce incompatibilities. If we cannot align to these rules because we have multiple versions of the same freecad library in one of the supported systems, we have to think about if this issue is dependent on the way how things are distributed on this system.

Please take your time and think about distributing a python-module for different systems/distros which depends on FreeCAD (import FreeCAD). Simple try this for Ubuntu (I suppose you have access to Ubuntu) and you will recognize, that you have to select a freecad version and modify the sys.path before you can "import FreeCAD".
Now think about other users with different platforms and you will recognize that there are other system dependent modifications necessary to make your module useable on these system.
And once you done this all, ask yourself what the reason for all this was.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
vocx
Posts: 1852
Joined: Thu Oct 18, 2018 9:18 pm

Re: Let's talk about Conda

Postby vocx » Mon Nov 11, 2019 5:44 am

looo wrote:
Sun Nov 10, 2019 7:23 am
...
And once you done this all, ask yourself what the reason for all this was.
I think you are thinking way too much about this "FreeCAD as a library" aspect. I think most people think about it as "FreeCAD as a program". I understand that it can be used as a library, but honestly I don't see many issues with that. In the other thread about the Startkit you mention the same, as if it's a very big problem that needs to be solved. I just don't see it that way, at least not at the moment.
looo
Posts: 2950
Joined: Mon Nov 11, 2013 5:29 pm

Re: Let's talk about Conda

Postby looo » Mon Nov 11, 2019 8:23 am

vocx wrote:
Mon Nov 11, 2019 5:44 am
I think you are thinking way too much about this "FreeCAD as a library" aspect. I think most people think about it as "FreeCAD as a program". I understand that it can be used as a library, but honestly I don't see many issues with that. In the other thread about the Startkit you mention the same, as if it's a very big problem that needs to be solved. I just don't see it that way, at least not at the moment.
Absolutely right, everyone has different expectations.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
triplus
Posts: 8786
Joined: Mon Dec 12, 2011 4:45 pm

Re: Let's talk about Conda

Postby triplus » Thu Nov 14, 2019 1:11 am

Well, one big benefit of Conda is it's cross platform. Another one is currently FreeCAD and its dependencies are well maintained. That comes down to having latest versions of most dependencies made available. In addition, currently people don't have to install Conda, for being able to run FreeCAD, as binaries are made available, from the Conda packages, for all supported platform. If you are more developer oriented, using Conda directly is considered to be a breeze.

P.S. And no, most people don't compile software. Basically if a binary doesn't exist, software doesn't exist, for most people out there.