File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99import os
1010import sys
11- from importlib import import_module
1211from importlib .util import find_spec
1312
1413# Make our custom extensions available to Sphinx
1514sys .path .append (os .path .abspath ('tools/extensions' ))
1615sys .path .append (os .path .abspath ('includes' ))
1716
18- from patchlevel import get_header_version_info
17+ from patchlevel import get_header_version_info , get_version_info
1918
2019# General configuration
2120# ---------------------
7776# We look for the Include/patchlevel.h file in the current Python source tree
7877# and replace the values accordingly.
7978# See Doc/tools/extensions/patchlevel.py
80- version , release = import_module ( 'patchlevel' ). get_version_info ()
79+ version , release = get_version_info ()
8180
8281rst_epilog = f"""
8382.. |python_version_literal| replace:: ``Python { version } ``
You can’t perform that action at this time.
0 commit comments