-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
Description
Bug report
Bug description:
I tried to run freeze.py
under the README instructions here.
# Assumed I was in the Python source tree root
python .\Tools\freeze\freeze.py -p . -o hello .\PCbuild\amd64\tests\hello.py
It did generate lots of .c
source files. But when I ran nmake
to generate the target, it complained as follows
Microsoft (R) Program Maintenance Utility Version 14.43.34809.0
Copyright (C) Microsoft Corporation. All rights reserved.
if not exist Build\Release\. mkdir Build\Release
NMAKE : fatal error U1073: don't know how to make '".\Python\frozenmain.c"'
Stop.
It looks like it could not find the correct Python
path. Then I tried ran the command without the output directory option
python .\Tools\freeze\freeze.py -p . .\PCbuild\amd64\tests\hello.py
And ran nmake
. It complained as follows
Microsoft (R) Program Maintenance Utility Version 14.43.34809.0
Copyright (C) Microsoft Corporation. All rights reserved.
frozenmain.c
./Include\Python.h(14): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory
NMAKE : fatal error U1077: 'cl -c -nologo /FoBuild\Release\frozenmain /MD /Ox /D BUILD_FREEZE "-I./Include" "-I./PC" ".\Python\frozenmain.c"' : return code '0x2'
Stop.
I found the PC\pyconfig.h
was removed since Python3.13. Should we update the document?
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows