3
0
forked from pool/libselinux
libselinux/python3.patch

14 lines
546 B
Diff

Index: libselinux-2.7/src/Makefile
===================================================================
--- libselinux-2.7.orig/src/Makefile
+++ libselinux-2.7/src/Makefile
@@ -1,7 +1,7 @@
# Support building the Python bindings multiple times, against various Python
# runtimes (e.g. Python 2 vs Python 3) by optionally prefixing the build
# targets with "PYPREFIX":
-PYTHON ?= python
+PYTHON ?= python3
PYPREFIX ?= $(shell $(PYTHON) -c 'import sys;print("python-%d.%d" % sys.version_info[:2])')
RUBY ?= ruby
RUBYPREFIX ?= $(notdir $(RUBY))