-
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] Declaring dependencies for consumed packages #17238
Comments
Thanks for your question
In this case, the issue is that At the moment,
Not the
this looks like a Conan 1.X |
Thanks for your answer @memsharded ! Yes we recently stumbled across the announced freeze of conan1 packages on conancenter. We consider this the first step to move towards conan2, because we have some internal dependency problems that requires some change in the setup anyway, that's why I decided to start packaging one of our libraries (on that note what would be the recommended approach to include a git submodule not with cmake's add_directory but as a conan package?). I believe from conan 1.61 to 2 it would not be a huge leap of faith, but we're even still using the old cmake_paths generator! So in changing that and to a conanfile.py it was that I experienced above problems. To answer your questions: This is our current lapack/3.8.0 conanfile.py:
I believe that gfortran also comes with a library. At least on my system I have libfortran installed in |
Thanks for the feedback. I see the def system_requirements(self):
# Note: dependencies - the below will forcefully install gfrotran, if
# that's the intention then it can be uncommented, however, it is better
# if the end-user does it willingly I agree with the comments. The new new I think this might be a good first step towards Conan 2 compatibility.
On the other hand, I'd never install gcc from Then
Same, I'd say the Quick question: is this recipe supposed to be able to work in the open? If you want to put it in a Github repo, then I might try to collaborate in the update of the recipe. |
Oh thanks a lot @memsharded! I got it up and running now, setting 'm', 'quadmath' and 'gfortran' as a system dependency! To answer your question: No for the moment we don't plan to use this in the open or make it public. One more question: Say this package B is now a dependency of another package A, but package A lives in its repository with package B checked out as a git submodule, how should package A require this dependency? Should there be a statement like self.requires(..) with a preliminary |
Using a dependency as a git submodule is an opposite and alternative approach to using it from an external package. Very often, when something is a submodule, the root If it doesn't contain a In the general case when using packages, the recommended flow is to decouple it, remove the submodule and use it always from an external dependency with |
I fear that we actually need packages in editable mode, since we're usually working on both at the same time. Thanks for pointing out that feature! Where is this information about editable references stored btw? Is there a way that I can forward this to my colleagues that are using the package as default? |
The information is stored in the Conan home folder, but it is not recommended or supported to share that information, because it will contain absolute paths that change from machine to machine and for different users. This kind of information will be part of the |
Interesting idea and greatly appreciated! Thanks for your help. I'll close this ticket then. |
What is your question?
In our company we're working with lapack and our
project A
defines a dependency on it:But whenever I configure
project A
I get this:gfortran is supposed to be available as a system dependency, however as I understand it lapack doesn't configure a system_libs dependency on gfortran (which it should) and therefore the lookup fails since the system fallback is not used. Now what options do I have?
lapack conanfile.txt
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: