mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Bug submitted by Wayne Knowles, who writes:
Under Windows, python freeze.py -o hello hello.py creates all the correct files in the hello subdirectory, but the Makefile has the directory prefix in it for frozen_extensions.c nmake fails because it tries to locate hello/frozen_extensions.c (His fix adds a call to os.path.basename() in the appropriate place.)
This commit is contained in:
parent
bf5a6d2eb4
commit
7039f50828
@ -397,7 +397,7 @@ def main():
|
||||
frozen_extensions)
|
||||
# Create a module definition for the bootstrap C code.
|
||||
xtras = [frozenmain_c, os.path.basename(frozen_c),
|
||||
frozendllmain_c, extensions_c] + files
|
||||
frozendllmain_c, os.path.basename(extensions_c)] + files
|
||||
maindefn = checkextensions_win32.CExtension( '__main__', xtras )
|
||||
frozen_extensions.append( maindefn )
|
||||
outfp = open(makefile, 'w')
|
||||
|
Loading…
Reference in New Issue
Block a user