]> granicus.if.org Git - python/commitdiff
Bug submitted by Wayne Knowles, who writes:
authorGuido van Rossum <guido@python.org>
Fri, 12 Mar 1999 22:07:05 +0000 (22:07 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Mar 1999 22:07:05 +0000 (22:07 +0000)
   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.)

Tools/freeze/freeze.py

index 2911a35ee93111f0fd89b7ccce27757e62afb422..d6ef87e4c297e7bf0edae630da17c7247e3ad380 100755 (executable)
@@ -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')