Allow passing `global_options`
Merge pull request #11947 from s0undt3ch/hotfix/pip-global-options

Allow passing `global_options`