-
Notifications
You must be signed in to change notification settings - Fork 984
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] Availability of self.export_folder #7283
Comments
Hi @madebr There is no access to the export folder in the |
Thanks, it seemed useful to have this dependency information saved in one place. |
How can I use the generated file to check the options in |
Not sure what you mean. Many times when a package is being consumed, there is no export_sources or sources at all, this is why things need to be packaged to be accessed by |
Boost is a huge project and has a complex dependency tree. e.g. boost has |
I see, yes, it might make sense to raise a |
I want also access to the information of the yml in |
The |
I'm generating a yml with the dependency information. Dependency information of boost 1.73.0
|
Ah, another file. Now I understand the issue, many thanks. Yes, at the moment the |
It would work, but the file would get huge for multiple boost versions. |
I've used |
I'm answering here, although it might apply to conan-io/conan-center-index#1925 or conan-io/conan-center-index#2097 IMO this information should be stored in the That information is needed in the
Then the hardcoded way: copying contents from a file in the repository to the wdyt about it? Is there anything in Conan itself that prevents us from doing something like this? |
Nope, there is nothing in conan preventing this. I'm left wondering though, what is the purpose of |
(I haven't run this, I'm not sure about working directories) class BoostRecipe(ConanFile):
def export(self):
# Read the file for the version we are packaging
data = load("dependencies-{}.yml".format(self.version))
# Add that information to the conandata.yml
conandata = load("conandata.yml")
conandata["dependencies"] = data
save("{export_folder}/conandata.yml", conandata)
def package_info(self):
dependencies = self.conan_data["dependencies"] Of course, this needs to be considered by the CCI hook, it won't work without modifying it. |
Hello,
I am in the process of automatically generating dependency information for boost.
See conan-io/conan-center-index#1925 (comment) for the progress.
Using export, I copy the dependency information to the export folder. This has to be copied to the export folder because the information needs to be available in
package_info
, where no source_folder or build_folder exists.But
self.export_folder
is unavailable inpackage_info
.So my question is: How do I access the export folder in package_info?
The text was updated successfully, but these errors were encountered: