NNPDF / pineappl

PineAPPL is not an extension of APPLgrid
https://nnpdf.github.io/pineappl/
GNU General Public License v3.0
12 stars 3 forks source link

Bump `pyo3` and `numpy` versions #298

Closed cschwan closed 2 months ago

cschwan commented 2 months ago

I'd like to improve the Python API a bit, and since we're lagging a bit behind the pyo3 versions we should update it first. It seems we can't update to pyo3-0.22 yet, due to numpy-0.21 requiring pyo3-0.21:

error: failed to select a version for `pyo3`.
    ... required by package `numpy v0.21.0`
    ... which satisfies dependency `numpy = "^0.21.0"` of package `pineappl_py v0.8.0 (/home/cschwan/projects/pineappl/pineappl_py)`
versions that meet the requirements `^0.21.0` are: 0.21.2, 0.21.1, 0.21.0

the package `pyo3` links to the native library `python`, but it conflicts with a previous package which links to `python` as well:
package `pyo3 v0.22.0`
    ... which satisfies dependency `pyo3 = "^0.22"` of package `pineappl_py v0.8.0 (/home/cschwan/projects/pineappl/pineappl_py)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "python"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.