Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@parona-source
Copy link
Contributor

https://devmanual.gentoo.org/eclass-reference/python-r1.eclass/index.html

python_gen_any_dep [ [...]]
Generate an any-of dependency that enforces a version match between the Python interpreter and Python packages. may list one or more dependencies with verbatim '${PYTHON_USEDEP}' or '${PYTHON_SINGLE_USEDEP}' references (quoted!) that will get expanded inside the function. If is an empty string (or no arguments are passed), a pure dependency on any Python interpreter will be generated.

    Example use: BDEPEND="$(python_gen_any_dep '         dev-python/foo[${PYTHON_SINGLE_USEDEP}]
            || ( dev-python/bar[${PYTHON_USEDEP}]
                    dev-python/baz[${PYTHON_USEDEP}] )' -2)"

    python_check_deps() {         python_has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" &&
                    { python_has_version "dev-python/bar[${PYTHON_USEDEP}]" ||
                            python_has_version "dev-python/baz[${PYTHON_USEDEP}]"; }
    } 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants