diff options
author | W. Trevor King <wking@tremily.us> | 2018-05-21 11:23:00 -0700 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2018-09-13 22:15:22 -0700 |
commit | 356765aa959626d0d027484b2797958c24fe3c15 (patch) | |
tree | ee75314dd883a26213bb306b19e18a766f4f0c0f /Makefile | |
parent | af6d86dcdf5fbe3b7e2e673c9ae4ce80fb603a1b (diff) | |
download | podman-356765aa959626d0d027484b2797958c24fe3c15.tar.gz podman-356765aa959626d0d027484b2797958c24fe3c15.tar.bz2 podman-356765aa959626d0d027484b2797958c24fe3c15.zip |
contrib/python/*/Makefile: Fallback to unversioned 'python'
And pull these from the PATH by default. This way systems like CentOS
that don't have a python3 can still execute 'make clean', which
doesn't care about the Python major version.
The setup.py shebang, mode change, and ./ prefixing helps address
cases where PYTHON is empty. This could be the result of improper
user configuration:
$ make PYTHON='' clean
It could also be the state on systems with no Python installed, in
which case you'll see:
$ make PYTHON='' clean
./setup.py clean --all
/usr/bin/env: 'python': No such file or directory
make: *** [Makefile:13: clean] Error 127
I've also shifted the Python invocations to the end of the clean
recipies so that as much as possible gets cleaned up even on systems
without Python installed.
Signed-off-by: W. Trevor King <wking@tremily.us>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions