-
Notifications
You must be signed in to change notification settings - Fork 993
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] python requires : to create a package with 2.x #13861
Comments
Hi @maitrey In Conan 2.0 you can also use What changed in Conan 2.0 is that as long as you define the |
Yes I could use the conan export . but I see that the documentation is confusing as it says to use : conan create . in 2.x. |
Yes, this is intended. Users don't need to recall to call another command, they can do
This would be solved by #13833, ongoing work |
I am using the command to build my packages locally: |
If I use like this:
and in CMakeLists.txt:
It fails with: |
If I use add_custom_target instead of add_test it fails with: |
Hi @maitrey Sorry, this issue is deviating too much from the original post, which was about I'd recommend to open a new ticket with the environment thing, with something that can be reproduced, I am afraid there is not enough information above to understand what could be happening. Thanks! |
alright, sorry I tend to misuse when I open one for a discussion. Sorry about it. I will open up a new issue. |
What is your question?
Dear Conan Folks,
I have some common methods in my recipes that I use across packages.
But the 1.x and 2.x documentation seems to be different in the way of creating packages.
https://docs.conan.io/2/reference/extensions/python_requires.html?highlight=python%20requires
Here it says conan create .
But In 1.x it says :
https://docs.conan.io/1/extending/python_requires.html
conan export .
Which is the correct way of python requires package?
I use conan-2.0.4.
Could you please guide me?
Thanks!
Br,
Maitrey
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: