Skip to content

Commit

Permalink
Rename distutils.sysconfig to sysconfig
Browse files Browse the repository at this point in the history
- Required for Python 3.12 as distutils is removed.
  • Loading branch information
MilesCranmer authored Dec 15, 2023
1 parent d407513 commit f4915f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/buildutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Conda, Libdl

pyvar(python::AbstractString, mod::AbstractString, var::AbstractString) = chomp(read(pythonenv(`$python -c "import $mod; print($mod.$(var))"`), String))

pyconfigvar(python::AbstractString, var::AbstractString) = pyvar(python, "distutils.sysconfig", "get_config_var('$(var)')")
pyconfigvar(python::AbstractString, var::AbstractString) = pyvar(python, "sysconfig", "get_config_var('$(var)')")
pyconfigvar(python, var, default) = let v = pyconfigvar(python, var)
v == "None" ? default : v
end
Expand Down

0 comments on commit f4915f1

Please sign in to comment.