diff --git a/Makefile b/Makefile index fe482b9..782a085 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ all: $(BIN) libfdt # We need both Python and swig to build pylibfdt. .PHONY: maybe_pylibfdt maybe_pylibfdt: FORCE - if $(PKG_CONFIG) --cflags python >/dev/null 2>&1; then \ + if $(PKG_CONFIG) --cflags python2 >/dev/null 2>&1; then \ if which swig >/dev/null 2>&1; then \ can_build=yes; \ fi; \ diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py index 90e80f3..1a1e832 100755 --- a/pylibfdt/setup.py +++ b/pylibfdt/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """ setup.py file for SWIG libfdt