avoid legacy compilation failures on recent ubuntu machines that only have python3-config
This commit is contained in:
@ -1,7 +1,14 @@
|
|||||||
# Settings that the LAMMPS build will import when this package library is used
|
# Settings that the LAMMPS build will import when this package library is used
|
||||||
# See the README file for more explanation
|
# See the README file for more explanation
|
||||||
|
ifeq ($(shell type python3 >/dev/null 2>&1; echo $$?), 0)
|
||||||
python_SYSINC = $(shell which python-config > /dev/null 2>&1 && python-config --includes || :)
|
PYTHON=python3
|
||||||
python_SYSLIB = $(shell which python-config > /dev/null 2>&1 && python-config --ldflags --embed > /dev/null 2>&1 && python-config --ldflags --embed || (which python-config > /dev/null 2>&1 && python-config --ldflags || :) )
|
PYTHONCONFIG = python3-config
|
||||||
python_SYSPATH =
|
else
|
||||||
|
PYTHONCONFIG = python-config
|
||||||
PYTHON=python
|
PYTHON=python
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
python_SYSINC = $(shell which $(PYTHONCONFIG) > /dev/null 2>&1 && $(PYTHONCONFIG) --includes || :)
|
||||||
|
python_SYSLIB = $(shell which $(PYTHONCONFIG) > /dev/null 2>&1 && $(PYTHONCONFIG) --ldflags --embed > /dev/null 2>&1 && $(PYTHONCONFIG) --ldflags --embed || (which $(PYTHONCONFIG) > /dev/null 2>&1 && $(PYTHONCONFIG) --ldflags || :) )
|
||||||
|
python_SYSPATH =
|
||||||
|
|||||||
@ -54,6 +54,7 @@ From: ubuntu:20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
texlive \
|
texlive \
|
||||||
|
|||||||
@ -83,6 +83,7 @@ From: ubuntu:20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
vim-nox \
|
vim-nox \
|
||||||
|
|||||||
@ -88,6 +88,7 @@ From: ubuntu:20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
vim-nox \
|
vim-nox \
|
||||||
|
|||||||
@ -53,6 +53,7 @@ From: ubuntu:20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
vim-nox \
|
vim-nox \
|
||||||
|
|||||||
@ -56,6 +56,7 @@ From: nvidia/cuda:11.6.2-devel-ubuntu20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
vim-nox \
|
vim-nox \
|
||||||
|
|||||||
@ -52,6 +52,7 @@ From: ubuntu:20.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
texlive \
|
texlive \
|
||||||
|
|||||||
@ -54,6 +54,7 @@ From: ubuntu:22.04
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-virtualenv \
|
python3-virtualenv \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
|
python-is-python3 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
texlive \
|
texlive \
|
||||||
|
|||||||
Reference in New Issue
Block a user