pybind / cmake_example

Example pybind11 module built with a CMake-based build system
Other
606 stars 215 forks source link

Cannot install this example from pypi test #182

Closed K20shores closed 3 months ago

K20shores commented 3 months ago

I'm trying to publish my pybind11 stuff to pypi. I figured I would test out the output for this project. When I run the instructions from pypi test for this project, I get an error telling me that no distribution is found

:: pip install -i https://test.pypi.org/simple/ cmake-example                                          
Looking in indexes: https://test.pypi.org/simple/
ERROR: Could not find a version that satisfies the requirement cmake-example (from versions: none)
ERROR: No matching distribution found for cmake-example
henryiii commented 3 months ago

We don't actually take the "cmake-example" name on TestPyPI. We might have pushed there before but even if we did, Test PyPI can be wiped and cleaned at any time, it's not a long term package index.

PS: I'd highly recommend looking a the scikit_build_example instead; wrapping setuptools is fragile.

K20shores commented 3 months ago

Where is the scikit_build_example? Is it this one?

henryiii commented 3 months ago

https://github.com/pybind/scikit_build_example, yes

henryiii commented 3 months ago

Also the guide here: https://learn.scientific-python.org/development/guides/ is helpful.

K20shores commented 3 months ago

Thanks!