Skip to content

Improved Conda install, dependencies  #795

Open

Description

@breznak

@dkeeney I've recently been toying with our conda python install. Turns out I could be able to get most of the deps through conda (eigen, cereal, pybind11,..)

But our CMake would still try to install them from source. Would it be difficult to add a check "if exists, don't install from source"?

  • I don't want to replace our cmake self-contained build. As it's really convenient and tested. Works for porting to any new env.
  • The Conda alternative would be useful for cloud/server envs where one does not have priviledges to install any new SW, but conda is typically available (conda is also a sw manager/installer)

Activity

  1. dkeeney commented on Apr 19, 2020

    @dkeeney

    Yes I was thinking about that.
    It will take some research to figure out how to 'test' before 'installing' using cmake.

    Let me first finish setting up my Ubuntu 18.4 environment so I can make sure that still builds.

  2. breznak commented on Apr 19, 2020

    @breznak
    MemberAuthor

    Something like cmake's find_package with conda env:
    https://stackoverflow.com/questions/55934253/make-cmakes-find-packageboost-find-headers-inside-conda-environment

    This is not urgent, but would be great if you could look into. As I hope we'll figure parameter optimization for NAB (#792 ) and then I'll abuse some of the university clusters for heavy computing ;)

  3. breznak commented on Apr 20, 2020

    @breznak
    MemberAuthor

    relevant snip

    I also want to change our build to check to see if boost is installed locally before downloading and building boost. However, the downloading occurs at configure time and the find_package(Boost...) occurs at build time. So, to use the find_package before the download would be difficult. In addition, there are so many variations on how the boost package can be constructed that it might not work even if there is an existing Boost installation. So I decided it was probably not worth it. ~dkeeney

  4. breznak commented on Jun 2, 2020

    @breznak
    MemberAuthor

    I'm wondering if I should work on this further.
    PROs: simpler dependency management (our goal is not to support the install infrastructure)
    CONs: dependant on conda -> limited platforms?. We(you) already have done the hard work and the cmake/setup dependencies works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildenhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions