Skip to content

Commit

Permalink
fix wrong identification of python 3.10 as python 3.1 (#42799)
Browse files Browse the repository at this point in the history
  • Loading branch information
basilrabi committed Apr 15, 2021
1 parent 607f819 commit 31bbdcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindLibPython.py
Expand Up @@ -34,7 +34,7 @@
import distutils.sysconfig

print("exec_prefix:%s" % sys.exec_prefix)
print("short_version:%s" % sys.version[:3])
print("short_version:%d.%d" % sys.version_info[:2])
print("long_version:%s" % sys.version.split()[0])
print("py_inc_dir:%s" % distutils.sysconfig.get_python_inc())
print("site_packages_dir:%s" % distutils.sysconfig.get_python_lib(plat_specific=1))

0 comments on commit 31bbdcf

Please sign in to comment.