Coder Social home page Coder Social logo

Comments (3)

peekxc avatar peekxc commented on July 23, 2024 1

Hi @RUrlus. Thanks for looking into this. A pip-installeable version would definitely be ideal, if possible.

That being said, I actually had not heard of ci-buildwheels and did not consider the use of CI's to automate package (wheel) building and distribution. Thanks for the tip!

from carma.

RUrlus avatar RUrlus commented on July 23, 2024

Hi @peekxc,

Yes CARMA is currently tied to CMake, however, you could install it your system library using CMake, which will create a default config.h, and then use your preferred build system:

cmake ..
cmake --build . --target install

A downside of this approach is that you will need to make sure that CARMA is always included before Armadillo.
There is no easy way around this, ARMA_ALIEN_MEM_* need to be set before including Armadillo. The CMake target handles by pre-compiling the required header. Hence, the recommendation to use the CMake build.

Regarding Python, I would advise to ship CARMA in the tar and use something like ci-buildwheels to create wheels for the various platforms. Pybind11 documentation has various examples on how to integrate CMake build in setup.py

CARMA is currently missing the required files for find_package but I will pick that up.

I am open to a PR for pkgconfig or something similar

from carma.

RUrlus avatar RUrlus commented on July 23, 2024

@peekxc I had a look today and I see some ways to improve usability.
I included a default config.h so it header-only independent of CMake.

I am working on a better CMake installation and targets, provide it as a pip package like Pybind11.
I am not familiar with pkgconfig but if it's not too much work I'll include that as well.

from carma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.