Hacker News new | ask | show | jobs
by superbatfish 3119 days ago
Yeah, that's what I do also. conda-build makes it easier to use your code downstream, but doesn't obviate the need for build scripts in general.

However, if you're using conda, you might be able to at least simplify your build scripts, even though you can't eliminate them.

If you are okay with requiring your users to have conda, then you can exploit that fact to simplify your CMakeLists.txt in some ways. For instance, find_library, etc.. can be replaced with hard-coded links to ${CONDA_PREFIX}/lib/...

(I'm not saying that's necessarily "best practice" for all projects, but it's a nice option to consider, especially in the early phases of development.)

1 comments

Ah, that's an interesting shortcut.