pyyaml icon indicating copy to clipboard operation
pyyaml copied to clipboard

Feature request for envvar to disable using libyaml

Open ilovezfs opened this issue 6 years ago • 2 comments

It would be great if there were an environment variable to disable using libyaml even if it's detected as available because passing --without-libyaml to pip can be non-trivial.

Currently, some packages in Homebrew routinely end up opportunistically linked to libyaml because they happen to use PyYAML and some other package in the same CI job has already installed libyaml, which PyYAML then uses even though the package using PyYAML doesn't itself depend on libyaml.

ilovezfs avatar Jul 01 '18 17:07 ilovezfs

Something like PYYAML_BUILD_WITHOUT_LIBYAML=1 seems reasonable.

ingydotnet avatar Jul 01 '18 18:07 ingydotnet

For anyone wondering like I was, to pass the flag to pip it's via --install-option, ie:

python3 -m pip install PyYAML --install-option="--without-libyaml"

darkvertex avatar May 09 '22 21:05 darkvertex