Comments (5)
Just in case others came a cross this issue, this is the content of the os.path.join(conan_api.cache_folder, "templates", "graph.dot")
file I've used in order to filter build dependencies:
digraph {
{%- for src, dst in graph.edges %}
{% if not dst.is_build_requires %}
"{{ src.label }}" -> "{{ dst.label }}"
{% endif %}
{%- endfor %}
}
from docs.
re-opening to add a bit more of docs
from docs.
Hi @nicosmd
The templates for html and dot graphs are customizable.
I think this feature is still not properly documented (just some hints in https://docs.conan.io/2/reference/commands/graph/info.html for html), but mostly:
- The path is
os.path.join(conan_api.cache_folder, "templates", "graph.dot")
- Every node in the graph has the
is_build_requires
, so{% if node.is_build_requires %}
can be used to filter if a node is in the build context or not
from docs.
Thank you very much! That's great to know and exactly what I need.
from docs.
Related Issues (20)
- How do we check the build OS in a recipe with Conan v2? HOT 2
- Improve docs around `upload_policy=skip` behaviour
- AuthenticationException: error HOT 10
- How to use conan with CMake to generate multi-config Visual Studio Solution Files? HOT 2
- Add a search functionality to the docs which delivers useful results. HOT 4
- Doxygen support HOT 5
- [question] Are there any examples of custom/user defined templates? HOT 2
- conan export-pkg document is very difficult to read due to formatting HOT 3
- [question] Documentation for `core.download:download_cache` HOT 4
- [question] How do I configure a conan package to use MY relocatable cmake package files? HOT 7
- Missing migration docs for "How to check the version of the Conan client inside a conanfile" HOT 2
- [bug] Packages using version numbers containing uppercase characters can't be published HOT 2
- undefined reference to `dladdr@GLIBC_2.34' HOT 1
- Tutorial/Consuming packages/Build a simple CMake project using Conan wrong command for windows
- Clarifications for build-requires graph cost & more
- [bug] conan remote command fails if remotes.json doen't exist HOT 7
- [question] Components hide global definitions in layout method HOT 3
- building fmt/10.1.0 on windows failed about unicode HOT 2
- building openexr/3.2.1 on the windows, failed with a cmake error. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.