https://pantsbuild.org/ logo
a

acceptable-guitar-79854

12/01/2020, 6:12 PM
i think i have a suggestion for an addition to SETTABLE_ENV_VARS: LDFLAGS, CPPFLAGS, CFLAGS (useful for pip install for example)
h

happy-kitchen-89482

12/01/2020, 6:31 PM
Good idea. We may actually want to get rid of this allowlist mechanism and allow users to set whatever they want (except for PATH and a couple of others perhaps).
a

acceptable-guitar-79854

12/01/2020, 6:34 PM
yeah, it's always a trade off between allowing/forbidding
h

hundreds-father-404

12/01/2020, 6:43 PM
We allow setting CPPFLAGS and LDFLAGS, but it’s not intuitive how. The
[python-native-code]
subsystem: https://www.pantsbuild.org/docs/reference-python-native-code That needs to be rolled up into something more general, like
[subprocess-environment].env_vars
a

acceptable-guitar-79854

12/01/2020, 7:43 PM
oh fantatic, thank you
❤️ 1
h

hundreds-father-404

12/01/2020, 7:52 PM
Let us know if you need CFLAGS too. No particular reason we don’t support it
h

happy-kitchen-89482

12/01/2020, 8:46 PM
Do we set those on all processes?
h

hundreds-father-404

12/01/2020, 8:54 PM
No, and we likely should. Right now it’s only
PexProcess
or if you opt in as a plugin author. The reason we didn’t is that it reduces cache hits. If
count-loc
doesn’t care about
CPPFLAGS
, then sitting it will unnecessarily make the cache key less generalizable, impacting things like remote caching We punted on the design question to get out 2.0
4 Views