Skip to content
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

cpython: Add native support for CMake's builtin FindPython(3) #23394

Merged
merged 16 commits into from
Jun 11, 2024

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Apr 6, 2024

Specify library name and version: cpython/all

With these new changes, consumers should be able to use find_package(Python) or find_package(Python3) without any additional setup. See notes about CMake and FindPython here: #23151

I've removed the tests for the old find_package(PythonInterp) and find_package(PythonLibs). Nothing's preventing them from working, but I figure most people at this point would be interested in the new versions, so this is just to clean up the test package (these are still tested in the test_v1_package, along with the "manual" find_package(Python3) integration, since I haven't added support for the v1 CMake genererators).

Going to wait for the new versions to be merged before taking this out of draft.


@conan-center-bot

This comment has been minimized.

@Ahajha Ahajha changed the title Add native support for CMake's builtin FindPython(3) cpython: Add native support for CMake's builtin FindPython(3) Apr 6, 2024
@conan-center-bot

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Apr 6, 2024

Hooks produced the following warnings for commit 579268b
cpython/3.10.0@#c132fd9a55da10c5f36f739a6acaaca1
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr@2/17142/becca/s/f377f3/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./bin/libs/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17142/faadd/s/0398b0/1/'}

@Ahajha
Copy link
Contributor Author

Ahajha commented Apr 6, 2024

@valgur Since you're reviewing, what would you think about having an option to opt-out of this behavior? We could install the wrapper module regardless, and then the option would just affect the package info, and not change the ID.

@valgur
Copy link
Contributor

valgur commented Apr 6, 2024

@Ahajha That's not a bad idea, but I can't think of a reason why someone would include the cpython package in requires, but would not want it to be picked up by find_package(Python). I would keep it simple for now and not include it unless someone complains. But either way would be fine by me.

@Ahajha
Copy link
Contributor Author

Ahajha commented Apr 6, 2024

@valgur My only concern is that perhaps it would break someone's workflow. But it likely won't, so yea I think we can leave it for now.

@Ahajha
Copy link
Contributor Author

Ahajha commented Apr 6, 2024

Want to see if I can get WITH_SOABI working, I haven't used it before so I don't know exactly what to expect, but what I'm seeing is almost certainly wrong. On Windows I'm seeing .pyd.pyd files, for example.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Apr 6, 2024

Hooks produced the following warnings for commit 5ac5a41
cpython/3.8.12@#68e2fda52ca261db5b82dcf4852c42b0
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17422/caddc/.conan/data/cpython/3.8.12/_/_/package/689403d698ad8a6e7a5ed616ae7311e3a0e517de/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/use_conan_python.cmake

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Apr 6, 2024

Hooks produced the following warnings for commit defcf60
cpython/3.8.12@#f14b179f66e0b599224e5d5d20d75876
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/cabcb/.conan/data/cpython/3.8.12/_/_/package/4a14cda3e7ca148a6b1faadb3dd157d4515b117c/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/daeda/.conan/data/cpython/3.8.12/_/_/package/689403d698ad8a6e7a5ed616ae7311e3a0e517de/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/abeac/.conan/data/cpython/3.8.12/_/_/package/2a6be3fe8381eeefd48805e3669056270fb8f4a1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/aedcd/.conan/data/cpython/3.8.12/_/_/package/52a6162d4350823a800f60ce01e991cb5894529a/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/cdbbc/.conan/data/cpython/3.8.12/_/_/package/dd3966ee63276fca532ed57d4b33d0191932bea6/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17424/eadfd/.conan/data/cpython/3.8.12/_/_/package/6daab04070d68bdee24890b2b54b8707b56e3d95/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17432/dfdcc/.conan/data/cpython/3.8.12/_/_/package/12fd6fab9dd1716abffc57af1922e63f16dfd11d/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17432/bbdcb/.conan/data/cpython/3.8.12/_/_/package/9b3f0daf08eb97fc40897448e1affb7624019bae/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17432/dbfef/.conan/data/cpython/3.8.12/_/_/package/ad949cec2f0842d4651ad7da217378770d418e27/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17432/faadc/.conan/data/cpython/3.8.12/_/_/package/22b9deec3c0d7f1e9b3bb6d97b0d7c3144f658d8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17443/fbfcc/.conan/data/cpython/3.8.12/_/_/package/10dc3259cfbf660a3e936dcb72b6b3fd9000b98e/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17443/cabba/.conan/data/cpython/3.8.12/_/_/package/049bfb1c5d913539bc7ef091d8e6a44946e26ae8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr@2/17454/ccbbd/.conan/data/cpython/3.8.12/_/_/package/e3b39066d339f26a9381c5c101e827c31b77ca26/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr@2/17454/edeab/.conan/data/cpython/3.8.12/_/_/package/dfeeeb1c0979f1f5dad548d1951f7cfda87b9368/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17454/efdfa/.conan/data/cpython/3.8.12/_/_/package/db4c460b95f09df051260d1f83af62aab8d4fbd5/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr@2/17454/eecdc/.conan/data/cpython/3.8.12/_/_/package/b059ec268eeb94db92706f28ec65a4e45726ed46/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17461/cfabe/s/72ff31/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./bin/libs/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17461/deabc/s/72dc12/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17461/fcebd/s/d3f0a4/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17461/dacde/s/34a93c/1/'}
cpython/3.10.0@#847d16b5c081218315afb9185f98bfdc
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/dcbca/.conan/data/cpython/3.10.0/_/_/package/689403d698ad8a6e7a5ed616ae7311e3a0e517de/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/bffef/.conan/data/cpython/3.10.0/_/_/package/4a14cda3e7ca148a6b1faadb3dd157d4515b117c/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/cdeba/.conan/data/cpython/3.10.0/_/_/package/2a6be3fe8381eeefd48805e3669056270fb8f4a1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/eebfa/.conan/data/cpython/3.10.0/_/_/package/dd3966ee63276fca532ed57d4b33d0191932bea6/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/deeab/.conan/data/cpython/3.10.0/_/_/package/52a6162d4350823a800f60ce01e991cb5894529a/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17425/adeef/.conan/data/cpython/3.10.0/_/_/package/6daab04070d68bdee24890b2b54b8707b56e3d95/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17434/eddbe/.conan/data/cpython/3.10.0/_/_/package/12fd6fab9dd1716abffc57af1922e63f16dfd11d/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17434/bcedd/.conan/data/cpython/3.10.0/_/_/package/9b3f0daf08eb97fc40897448e1affb7624019bae/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17434/fbaaa/.conan/data/cpython/3.10.0/_/_/package/ad949cec2f0842d4651ad7da217378770d418e27/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17434/abead/.conan/data/cpython/3.10.0/_/_/package/22b9deec3c0d7f1e9b3bb6d97b0d7c3144f658d8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17445/dfcbe/.conan/data/cpython/3.10.0/_/_/package/10dc3259cfbf660a3e936dcb72b6b3fd9000b98e/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17445/bcaef/.conan/data/cpython/3.10.0/_/_/package/049bfb1c5d913539bc7ef091d8e6a44946e26ae8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17456/cfffc/.conan/data/cpython/3.10.0/_/_/package/dfeeeb1c0979f1f5dad548d1951f7cfda87b9368/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17456/bcaff/.conan/data/cpython/3.10.0/_/_/package/e3b39066d339f26a9381c5c101e827c31b77ca26/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr@2/17456/eebfe/.conan/data/cpython/3.10.0/_/_/package/db4c460b95f09df051260d1f83af62aab8d4fbd5/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17456/feead/.conan/data/cpython/3.10.0/_/_/package/b059ec268eeb94db92706f28ec65a4e45726ed46/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17462/bfaec/s/7c12d2/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./bin/libs/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr@2/17462/abfae/s/dfde4d/1/'}
cpython/3.9.7@#f98d90a3cd2926a45c790762dc314235
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/cdaad/.conan/data/cpython/3.9.7/_/_/package/689403d698ad8a6e7a5ed616ae7311e3a0e517de/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/fdedd/.conan/data/cpython/3.9.7/_/_/package/4a14cda3e7ca148a6b1faadb3dd157d4515b117c/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/efdfc/.conan/data/cpython/3.9.7/_/_/package/2a6be3fe8381eeefd48805e3669056270fb8f4a1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/bdded/.conan/data/cpython/3.9.7/_/_/package/dd3966ee63276fca532ed57d4b33d0191932bea6/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/bfcdd/.conan/data/cpython/3.9.7/_/_/package/6daab04070d68bdee24890b2b54b8707b56e3d95/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17426/cbbeb/.conan/data/cpython/3.9.7/_/_/package/52a6162d4350823a800f60ce01e991cb5894529a/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17433/ecacf/.conan/data/cpython/3.9.7/_/_/package/9b3f0daf08eb97fc40897448e1affb7624019bae/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17433/aaffc/.conan/data/cpython/3.9.7/_/_/package/12fd6fab9dd1716abffc57af1922e63f16dfd11d/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17433/bcccc/.conan/data/cpython/3.9.7/_/_/package/22b9deec3c0d7f1e9b3bb6d97b0d7c3144f658d8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17433/bfccb/.conan/data/cpython/3.9.7/_/_/package/ad949cec2f0842d4651ad7da217378770d418e27/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17447/eebdd/.conan/data/cpython/3.9.7/_/_/package/10dc3259cfbf660a3e936dcb72b6b3fd9000b98e/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/home/conan/workspace/prod-v1/bsr/17447/aedcf/.conan/data/cpython/3.9.7/_/_/package/049bfb1c5d913539bc7ef091d8e6a44946e26ae8/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17458/cceff/.conan/data/cpython/3.9.7/_/_/package/e3b39066d339f26a9381c5c101e827c31b77ca26/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17458/baffb/.conan/data/cpython/3.9.7/_/_/package/dfeeeb1c0979f1f5dad548d1951f7cfda87b9368/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17458/beacc/.conan/data/cpython/3.9.7/_/_/package/db4c460b95f09df051260d1f83af62aab8d4fbd5/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/workspace/prod-v1/bsr/17458/effad/.conan/data/cpython/3.9.7/_/_/package/b059ec268eeb94db92706f28ec65a4e45726ed46/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr@2/17463/baaac/s/3fd3a4/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./bin/libs/cmake/use_conan_python.cmake
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr@2/17463/abacf/s/82da1b/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr/17463/eeacd/s/9f9b18/1/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'C:/J/workspace/prod-v1/bsr@2/17463/adfcc/s/6612c8/1/'}

Copy link
Contributor

@valgur valgur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

test_package looks so much saner as well now. :)

@Ahajha
Copy link
Contributor Author

Ahajha commented Apr 7, 2024

@valgur Seems that there's a bug in FindPython regarding SOABI and Windows debug builds, I've reported it here: https://gitlab.kitware.com/cmake/cmake/-/issues/25874. It's possible the difficulty in auto-detection is related, I might make a separate issue for that.

Just going to fix the lint warning and then this should be go (aside from waiting for the other PR to be merged).

@Ahajha Ahajha marked this pull request as ready for review April 7, 2024 18:59
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 13 (ba9ece8d3e0036ef167c42d773a5d60392593fe9):

  • cpython/3.11.9:
    All packages built successfully! (All logs)

  • cpython/3.12.2:
    All packages built successfully! (All logs)

  • cpython/3.10.14:
    All packages built successfully! (All logs)

  • cpython/3.9.19:
    All packages built successfully! (All logs)

  • cpython/3.8.19:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 13 (ba9ece8d3e0036ef167c42d773a5d60392593fe9):

  • cpython/3.11.9:
    All packages built successfully! (All logs)

  • cpython/3.12.2:
    All packages built successfully! (All logs)

  • cpython/3.10.14:
    All packages built successfully! (All logs)

  • cpython/3.8.19:
    All packages built successfully! (All logs)

  • cpython/3.9.19:
    All packages built successfully! (All logs)

@danimtb danimtb self-assigned this Jun 11, 2024
@conan-center-bot conan-center-bot merged commit 300d1da into conan-io:master Jun 11, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants