From a9365c34c3f3fb9ede333e5588625fa01600c57b Mon Sep 17 00:00:00 2001 From: memsharded Date: Thu, 28 May 2026 17:38:01 +0200 Subject: [PATCH] warning for workspace + python-requires --- reference/workspace_files.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/workspace_files.rst b/reference/workspace_files.rst index 70c6c5d30e5a..75420eacffd9 100644 --- a/reference/workspace_files.rst +++ b/reference/workspace_files.rst @@ -33,6 +33,18 @@ Moreover, it could not have the ``ref`` field, and let Conan read the *name/vers - path: dep2 +.. warning:: + + Support for ``python_requires`` in a workspace is limited and highly **experimental** (the whole feature is still incubating, so + no guarantees about ``python_requires`` either). + + In case of having ``python_requires`` in the workspace, they should be declared first, before other packages that use + them, the order is important. They also must declare the proper ``package_type = "python-require"``. + + Also, it will only work when using ``conanws.yml``, but not with a dynamic definition using ``conanws.py`` ``packages()`` + method. + + conanws.py ----------