New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pybind11: init at 2.2.2 #35027
pybind11: init at 2.2.2 #35027
Conversation
This is a header-only library so the buildInputs and flags are not needed. |
a01f9b5
to
57b0610
Compare
@FRidh Thanks very much for the advise! The upstream CMakeLists.txt appears to be organized in a way that the standard Also, it by default (i.e. without But then I've tentatively set So how's about something like 57b0610 for now? |
But why go through the make process at all? These are headers-only. When not considering the tests, all that needs to be done is move the include folder to |
Yes, I do think moving the include folder to But I thought (1) one would want to run upstream tests and also (2) have For me the 2nd point is more important, and then I can (thanks to nix updating |
Using this as a private overlay for some time now, I also got: propagatedBuildInputs = [
eigen
python
pythonPackages.numpy
pythonPackages.pytest
pythonPackages.scipy
]; TBH I don't recall why I did it that way. :-/ maybe I'll be able to look into this in the next days. |
Sorry, I think my statement above was wrong.
is a bit more important than being nice to the world outside nix.. |
any reason why this isn't merged? |
I need this! |
@GrahamcOfBorg build pybind11 |
Success on x86_64-linux (full log) Attempted: pybind11 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: pybind11 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pybind11 Partial log (click to expand)
|
Haven't come around it yet, but it seems to me there's now a python style and a cmake based style to install this. Both yielding a little different results. We might need to reinvestigate. |
I have problems building pyopencl that has pybind11 as a dependency: pybind11 is not found. Perhaps it's because it's not installed as a Python package at the moment? I opened an issue: #53497 |
Motivation for this change
pybind11
( https://github.com/pybind/pybind11 ) is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code.This package is handy as well as is used at least in a couple of well-known deep learning frameworks (alas used often as git submodules).
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)