Conversation
8ccb9ea to
ee420a6
Compare
ee420a6 to
e57103e
Compare
|
If I understand this concept correctly, calling conan and pip install is now separated - which I would prefer to the old solution where conan gets called from within setup.py. I see from the CI how this can work when locally cloing the repository. But would this also be possible via pypi? or how would this work? |
No... because the conanfile is of course only there once you downloaded the package. This is one of the reasons why this is still "draft". Installing the source distribution from pypi would require having all dependencies already on the system. One solution around this would be to offer pre-built wheels for the most common platforms, e.g. via cibuildwheel. If we really want to call conan, we could call it from CMakeLists.txt I think, in an |
This should get you started.
More metadata can be added and I recommend to also include
setuptools_scmfor automatic version handling, this would require a top-levelproposal/pure python package though, instead of just shipping the extension library.This can be made backwards compatible by importing everything from
proposal.....soinproposal/__init__.py.