FreeCAD Conda Distribution

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
ianj001
Posts: 55
Joined: Fri Sep 22, 2017 2:38 pm
Location: USA

Re: FreeCAD Conda Distribution

Post by ianj001 »

Happy to help but someone needs to point me in the right direction.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD Conda Distribution

Post by Kunda1 »

ianj001 wrote: Sun Oct 11, 2020 3:36 pm Happy to help but someone needs to point me in the right direction.
Feel free to read the thread from start to finish and ask questions at the end.
Have you successfully compiled FreeCAD using Conda?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ianj001
Posts: 55
Joined: Fri Sep 22, 2017 2:38 pm
Location: USA

Re: FreeCAD Conda Distribution

Post by ianj001 »

No I haven't that's why I wanted someone to point me in the right direction. If it's just me working through without any pointers, I am out. I am a willing participant but not blindly jumping in, no good will come from that.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD Conda Distribution

Post by vocx »

ianj001 wrote: Sun Oct 11, 2020 10:47 pm No I haven't that's why I wanted someone to point me in the right direction...
That's pretty much how free software works. You have to jump head first, and learn by yourself. Once you've done that, then you can start talking at the same level as other developers. You cannot expect people to hold your hand all the time.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
ianj001
Posts: 55
Joined: Fri Sep 22, 2017 2:38 pm
Location: USA

Re: FreeCAD Conda Distribution

Post by ianj001 »

Yeah, I am not looking for hand holding, I have built Unix software distributions, but just blindly jumping in never works well. If there's no one that can point me in the right direction then I am probably not the right guy for this. No harm no foul. I just don't want to be floundering around in a directionless circle.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

ianj001 wrote: Sun Oct 11, 2020 11:44 pm Yeah, I am not looking for hand holding, I have built Unix software distributions, but just blindly jumping in never works well. If there's no one that can point me in the right direction then I am probably not the right guy for this. No harm no foul. I just don't want to be floundering around in a directionless circle.
Maybe you want to give us some information, about your goals. Which platform are you using (Linux, win, mac)?
User avatar
ianj001
Posts: 55
Joined: Fri Sep 22, 2017 2:38 pm
Location: USA

Re: FreeCAD Conda Distribution

Post by ianj001 »

I was offering to help with the packaging. I have access to all three platforms. I am primarily using the windows version. I am willing to help but was looking for someone to point me in the right direction. No one seems willing /able to do that so, I would rather not get started down a rabbit hole. I have read the threads and the docs. I have also looked at conda. I don't think it's unreasonable to look for some direction.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

ianj001 wrote: Mon Oct 12, 2020 11:54 am I was offering to help with the packaging. I have access to all three platforms. I am primarily using the windows version. I am willing to help but was looking for someone to point me in the right direction. No one seems willing /able to do that so, I would rather not get started down a rabbit hole. I have read the threads and the docs. I have also looked at conda. I don't think it's unreasonable to look for some direction.
Currently freecad on conda-forge is not using the most recent available dependencies. So a little bit of work is necessary to get it updated again (boost 1.74, vtk 9, qt5.15). I guess this would be the simplest way to get involved with conda-forge packaging and become a maintainer. Normally if you find a solution to a broken recipe you can add yourself to the maintainers list. So getting involved into conda-forge is pretty easy.
Here are some PR's to get started:
vtk (with boost1.74): https://github.com/conda-forge/vtk-feedstock/pull/146
qt5.15: https://github.com/conda-forge/qt-feedstock/pull/158
smesh (update to vtk9): https://github.com/conda-forge/smesh-feedstock/pull/35

On the other side we are using conda to bundle all the necessary libraries for freecad. Here we have one legal issue which needs to be solved: The windows bundle is not allowed to use the mkl (openblas) libraries. There are alternatives available (netlib) but simple switching to netlib didn't work out when I tested the last time. So here we need to find out how we can use netlib in a portable bundle.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD Conda Distribution

Post by sgrogan »

ianj001 wrote: Mon Oct 12, 2020 11:54 am I am willing to help but was looking for someone to point me in the right direction.
Let me try.
I will use the 0.19_pre builds, but the stable releases are similar.
The actual builds are accomplished on azure, triggered from a conda-smithy repo, in this case https://github.com/looooo/freecad-feedstock
We trigger these builds manually by bumping the build number here: https://github.com/looooo/freecad-feeds ... ta.yaml#L3
These builds are deployed to the freecad/label/dev channel on conda-forge. At this point they are installable as a package from an anaconda/mini-conda installation.https://wiki.freecadweb.org/Conda
We package these builds by installing a miniconda environment with this FreeCAD package and some extra useful python modules.
The conda builds a packaged to make them portable without needing miniconda installed on the user system. Then deployed to https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
This is done on the FreeCAD-AppImage repo. https://github.com/FreeCAD/FreeCAD-AppImage, this runs as a cron job once a day. This will run even if the underlying conda-forge builds haven't changed.

If you have questions please ask.
"fight the good fight"
User avatar
ianj001
Posts: 55
Joined: Fri Sep 22, 2017 2:38 pm
Location: USA

Re: FreeCAD Conda Distribution

Post by ianj001 »

looo wrote: Mon Oct 12, 2020 12:48 pm
Currently freecad on conda-forge is not using the most recent available dependencies. So a little bit of work is necessary to get it updated again (boost 1.74, vtk 9, qt5.15). I guess this would be the simplest way to get involved with conda-forge packaging and become a maintainer. Normally if you find a solution to a broken recipe you can add yourself to the maintainers list. So getting involved into conda-forge is pretty easy.
Here are some PR's to get started:
vtk (with boost1.74): https://github.com/conda-forge/vtk-feedstock/pull/146
qt5.15: https://github.com/conda-forge/qt-feedstock/pull/158
smesh (update to vtk9): https://github.com/conda-forge/smesh-feedstock/pull/35

On the other side we are using conda to bundle all the necessary libraries for freecad. Here we have one legal issue which needs to be solved: The windows bundle is not allowed to use the mkl (openblas) libraries. There are alternatives available (netlib) but simple switching to netlib didn't work out when I tested the last time. So here we need to find out how we can use netlib in a portable bundle.
Thanks this helps for a place to start
Post Reply