mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-40334: Fix build errors and warnings in test_peg_generator (GH-19672)
This commit is contained in:
parent
ee40e4b856
commit
1df5a9e88c
4 changed files with 17 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ import distutils.log
|
|||
from distutils.core import Distribution, Extension
|
||||
from distutils.command.clean import clean # type: ignore
|
||||
from distutils.command.build_ext import build_ext # type: ignore
|
||||
from distutils.tests.support import fixup_build_ext
|
||||
|
||||
from pegen.c_generator import CParserGenerator
|
||||
from pegen.grammar import Grammar
|
||||
|
|
@ -69,6 +70,7 @@ def compile_c_extension(
|
|||
]
|
||||
dist = Distribution({"name": extension_name, "ext_modules": extension})
|
||||
cmd = build_ext(dist)
|
||||
fixup_build_ext(cmd)
|
||||
cmd.inplace = True
|
||||
if build_dir:
|
||||
cmd.build_temp = build_dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue