mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-02 20:52:55 +00:00
10 lines
214 B
Makefile
10 lines
214 B
Makefile
|
ifndef PYTHON
|
||
|
|
||
|
# Default to python3. Some distros like CentOS 8 do not have `python`.
|
||
|
ifeq ($(origin PYTHON), undefined)
|
||
|
PYTHON := $(shell which python3 || which python || echo python3)
|
||
|
endif
|
||
|
export PYTHON
|
||
|
|
||
|
endif
|