-
Notifications
You must be signed in to change notification settings - Fork 970
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
[question] Cannot use cpython as a downstream dependency #16927
Comments
Thanks for your report @Todiq I am trying to reproduce with your repo code, but my build is failing at an earlier stage, while building "boost":
No idea why this is happening, I'd need to investigate |
I am using python 3.9.13 on my side, but I don’t think that will differ much from your version Boost (recipe?) expects to have numpy installed (of course, I know you’re not blind). The only workaround I found so far for this is to install it in the (virtual) environment. But here’s the catch: I never made it work with a version > 1.26.4. Meaning that starting from numpy version 2.0.0 and upwards, I would get the same error as yours (if my memory is correct). Could you please try with 1.26.4? |
You error looks like the one mentionned here: #11241 |
Do you think it might be related to #16952 ? |
Hi @memsharded, Would you mind having a look again when you have some time please? I know you must be very busy. Thanks in advance. |
What is your question?
Hello,
I am not really sure in which repo to create this ticket, since I don't know if it comes from a recipe's misuse or a conan client misuse (or something else).
I have a library
alpha
and a librarybeta
that depends on it. Both need to link with boost python. Asboost python
is not set to automatically gathercpython
, I would like to get it through theconanfile
, rather than using the system one.Here is an example : https://github.com/Todiq/test_conan
You juste have to run
python build.py
. I only tested it on Windows.While the build of
alpha
passes, it fails onbeta
:Replacing
find_package(Python COMPONENTS Development QUIET)
withfind_package(Python3 COMPONENTS Development QUIET)
inbeta
's cmake removes the initial warning, but does not fix the issue (no warning inalpha
though).In
beta
's recipe, I tried usingself.requires("cpython/3.9.19", override=True)
instead of the regularself.requires("cpython/3.9.19")
as well, but that would not fix the issue either.Am I missing something? Thanks in advance for your help!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: