HEXRD / hexrd

A cross-platform, open-source library for the analysis of X-ray diffraction data.
Other
56 stars 25 forks source link

Try using libmamba solver for conda packaging #562

Closed psavery closed 1 year ago

psavery commented 1 year ago

It is officially supported by conda, and it is significantly faster.

Before this commit, Windows packaging usually takes 1 hour and 15 minutes. Mac packaging usually takes about 45 minutes. Linux usually takes about 35 minutes.

We'll see if there are any noticeable differences.

Fixes: #556

psavery commented 1 year ago

I got libmamba working for the Linux packaging, and it reduced the time by about half to about 17 minutes! That's a great speedup.

However, I haven't figured out yet how to get it working for Windows and Mac. I am setting up the solver to be libmamba, but conda build is apparently still not using the libmamba solver.

psavery commented 1 year ago

Well, for Mac and Windows, I had to install libmamba twice, and set it in the environment twice. I'm not sure why, but I've spent an hour or two trying to figure it out and was unable to figure it out. It has something to do with conda build's internal processes, which I do not know much about. I don't have time to continue exploring this, so we will leave it as is.

Anyways, it does make the packaging much faster for all operating systems! The packaging is nearly twice as fast for every OS. Windows took 40 minutes instead of 75 minutes. Mac took 18 minutes instead of 45 minutes. And Linux took 15 minutes instead of 35 minutes. This PR is ready to go! We should do something similar for HEXRDGUI.