Skip to content

Commit e4f31d0

Browse files
committed
Solve out-of-tree build differently
1 parent fa52af4 commit e4f31d0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Tools/scripts/deepfreeze.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ def main() -> None:
407407
source = f.read()
408408
modname = args.module or os.path.basename(args.file).removesuffix(".py")
409409
output = args.output or modname + ".c"
410-
outdir = os.path.dirname(output)
411-
if outdir:
412-
os.makedirs(outdir, exist_ok=True)
413410
with open(output, "w", encoding="utf-8") as file:
414411
with report_time("generate"):
415412
generate(source, f"<frozen {modname}>", modname, file)

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17304,7 +17304,8 @@ SRCDIRS="\
1730417304
Objects \
1730517305
Parser \
1730617306
Programs \
17307-
Python"
17307+
Python \
17308+
Python/deepfreeze"
1730817309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
1730917310
$as_echo_n "checking for build directories... " >&6; }
1731017311
for dir in $SRCDIRS; do

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5652,7 +5652,8 @@ SRCDIRS="\
56525652
Objects \
56535653
Parser \
56545654
Programs \
5655-
Python"
5655+
Python \
5656+
Python/deepfreeze"
56565657
AC_MSG_CHECKING(for build directories)
56575658
for dir in $SRCDIRS; do
56585659
if test ! -d $dir; then

0 commit comments

Comments
 (0)