bt2/setup.py.in: assume environment variables always exist
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Nov 2024 17:10:51 +0000 (12:10 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Nov 2024 19:58:27 +0000 (14:58 -0500)
commit18bcd8bdd30f29196eb9c17db2d528e4f0437b16
tree67345e537be902bb0334451fcbf10fecc65718fa
parent3a75f7405c4804a563b9399967ca7e8c0f910db6
bt2/setup.py.in: assume environment variables always exist

`setup.py` is always called from our Makefile, where we control which
environment variables are set.  Remove the code paths that handle the
cases where environment variables CC, LDFLAGS, CFLAGS and CPPFLAGS may
not exist.  This simplifies the number of cases to worry about, making
the code easier to reason about.

This requires passing the build flags to setup.py when using the install
command, but I don't think that's a problem.

Change-Id: I380d113824bddf6a423e34a681d904a844175100
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13491
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/setup.py.in
This page took 0.024518 seconds and 4 git commands to generate.