replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced by sysconfig. For py2 version code stays in specfile. https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated Related: https://pagure.io/koji/issue/3514
This commit is contained in:
parent
63a143c4d1
commit
6e1ae7231e
7 changed files with 14 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
PYFILES = $(wildcard *.py)
|
||||
|
||||
PACKAGE = $(shell basename `pwd`)
|
||||
PKGDIR = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/$(PACKAGE)
|
||||
PKGDIR = $(shell $(PYTHON) ../../devtools/get_site_packages.py )/$(PACKAGE)
|
||||
|
||||
_default:
|
||||
@echo "nothing to make. try make install"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue