Makefile: added fix for python-3.12
Resolves: rhbz#2154801 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
b894a3ee3f
commit
fae8cb34b0
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -40,7 +40,7 @@ ifeq ($(PYTHON),python2)
|
|||
PYLINT = pylint-2
|
||||
endif
|
||||
SHEBANG_REWRITE_REGEX= '1s|^\#!/usr/bin/\<python3\>|\#!$(PYTHON)|'
|
||||
PYTHON_SITELIB = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib());')
|
||||
PYTHON_SITELIB = $(shell $(PYTHON) -c 'from sysconfig import get_path; print(get_path("purelib"));')
|
||||
ifeq ($(PYTHON_SITELIB),)
|
||||
$(error Failed to determine python library directory)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue