I want to add a optional dependency in setup.py, and change my package install configuration when user install with the optional dependency.
setup.py for example
# eg
if has_optional_dependency("foo"):
add_configuration("xxx")
setup(
extras_require={
"foo": ["foo==1.0.0"],
}
)