mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
dist: Switch FreezeTool over to sysconfig
distutils is deprecated and will be removed as of Python 3.12 Its use should not be affected by #1230 since it only uses it to query the include directory, not any other paths Addresses part of #1395
This commit is contained in:
parent
eeba583176
commit
036e5dc2db
6
direct/src/dist/FreezeTool.py
vendored
6
direct/src/dist/FreezeTool.py
vendored
@ -9,7 +9,7 @@ import imp
|
|||||||
import platform
|
import platform
|
||||||
import struct
|
import struct
|
||||||
import io
|
import io
|
||||||
import distutils.sysconfig as sysconf
|
import sysconfig
|
||||||
import zipfile
|
import zipfile
|
||||||
import importlib
|
import importlib
|
||||||
import warnings
|
import warnings
|
||||||
@ -170,8 +170,8 @@ class CompilationEnvironment:
|
|||||||
|
|
||||||
# Paths to Python stuff.
|
# Paths to Python stuff.
|
||||||
self.Python = None
|
self.Python = None
|
||||||
self.PythonIPath = sysconf.get_python_inc()
|
self.PythonIPath = sysconfig.get_path('include')
|
||||||
self.PythonVersion = sysconf.get_config_var("LDVERSION") or sysconf.get_python_version()
|
self.PythonVersion = sysconfig.get_config_var("LDVERSION") or sysconfig.get_python_version()
|
||||||
|
|
||||||
# The VC directory of Microsoft Visual Studio (if relevant)
|
# The VC directory of Microsoft Visual Studio (if relevant)
|
||||||
self.MSVC = None
|
self.MSVC = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user