mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Migrate from deprecated distutils.sysconfig
in scripts (#5729)
This commit is contained in:
parent
78222f274c
commit
f11fcec082
2 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ import shutil
|
|||
from mk_exception import *
|
||||
import mk_genfile_common
|
||||
from fnmatch import fnmatch
|
||||
import distutils.sysconfig
|
||||
import sysconfig
|
||||
import compileall
|
||||
import subprocess
|
||||
|
||||
|
@ -48,7 +48,7 @@ CXX_COMPILERS=['g++', 'clang++']
|
|||
C_COMPILERS=['gcc', 'clang']
|
||||
JAVAC=None
|
||||
JAR=None
|
||||
PYTHON_PACKAGE_DIR=distutils.sysconfig.get_python_lib(prefix=getenv("PREFIX", None))
|
||||
PYTHON_PACKAGE_DIR=sysconfig.get_path('purelib')
|
||||
BUILD_DIR='build'
|
||||
REV_BUILD_DIR='..'
|
||||
SRC_DIR='src'
|
||||
|
@ -1611,7 +1611,7 @@ class PythonInstallComponent(Component):
|
|||
os.path.join(self.pythonPkgDir,'z3'),
|
||||
in_prefix=self.in_prefix_install)
|
||||
|
||||
if PYTHON_PACKAGE_DIR != distutils.sysconfig.get_python_lib():
|
||||
if PYTHON_PACKAGE_DIR != sysconfig.get_path('purelib'):
|
||||
out.write('\t@echo Z3Py was installed at \'%s\', make sure this directory is in your PYTHONPATH environment variable.' % PYTHON_PACKAGE_DIR)
|
||||
|
||||
def mk_uninstall(self, out):
|
||||
|
@ -2692,7 +2692,7 @@ def mk_config():
|
|||
print("Python pkg dir: %s" % PYTHON_PACKAGE_DIR)
|
||||
if GPROF:
|
||||
print('gprof: enabled')
|
||||
print('Python version: %s' % distutils.sysconfig.get_python_version())
|
||||
print('Python version: %s' % sysconfig.get_python_version())
|
||||
if is_java_enabled():
|
||||
print('JNI Bindings: %s' % JNI_HOME)
|
||||
print('Java Compiler: %s' % JAVAC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue