Closed felixhekhorn closed 2 years ago
pyo3-built
looks unnecessarily complex and too unmaintained.
I'd suggest to go for the first option, it looks perfect to me :)
That's a good idea, I'll look into it!
I tried adding
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
in src/lib.rs
, but this doesn't have an effect. It should add a variable pineappl.__version__
, shouldn't it?
yes - you can check the available attributes with dir
(in case it got bound somewhere else ...)
@cschwan the magic was just in the nesting of the layers (it got bound in pineappl.pineappl
) - I reexposed it again on top level
@scarlehoff this is what would have helped us in hunting https://github.com/NNPDF/nnpdf/pull/1529#issuecomment-1137520115
@felixhekhorn cheers!
How about adding something like https://github.com/PyO3/maturin/issues/100 ? or as is written there https://github.com/PyO3/pyo3-built/
this would facilitate the debugging process ...