Git Product home page Git Product logo

Comments (5)

sgsaenger avatar sgsaenger commented on August 24, 2024

Yes, but I'm new to cmake and have no clue how to reliably find the system-wide installation.
As it's header-only, i don't reckon it a pressing issue, but hints or PRs are welcome!

from vipster.

yurivict avatar yurivict commented on August 24, 2024

For a header-only library it can add a cmake variable PYBIND11_HEADER_PATH variable that would use these headers.

from vipster.

yurivict avatar yurivict commented on August 24, 2024

Better yet, Python binding should be its own, separate project. Systems generally have multiple versions of python installed at the same time, and the binding also needs to be independently installed at the same time for each of them. setup.py-based bindings are the best, and a way to go.

from vipster.

sgsaenger avatar sgsaenger commented on August 24, 2024

For a header-only library it can add a cmake variable PYBIND11_HEADER_PATH variable that would use these headers.

Ah, of course. So defaulting to external/pybind11, but can be replaced with user-/maintainer-defined values. Will look into it.

Better yet, Python binding should be its own, separate project. Systems generally have multiple versions of python installed at the same time, and the binding also needs to be independently installed at the same time for each of them. setup.py-based bindings are the best, and a way to go.

The targeted python version can be choosen as for all pybind11-projects, so that's a non-issue.
I've thought about splitting it up, but there are two problems:

  • especially on windows, path-mangling and package-management is not the norm, so i want to (eventually) distribute the python stuff alongside the rest. This'll lead to either circular dependencies or the need for a master-project with three subprojects.
  • not the slightes clue how to correctly distribute this over PyPI, as the building would need to be performed by setup.py (no clue how to make sure that the user has all C++-dependencies) or a ton of wheels be created.
    Both are kinda too much work for too little gain, atm.

from vipster.

sgsaenger avatar sgsaenger commented on August 24, 2024

setup.py-based installation is now implemented, together with searching for a systemwide pybind11 installation before falling back to external/pybind11.
Beginning with the next release vipster will be available on PyPI.

from vipster.

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.