Fwd: I'd like to reopen discussion on the Windows path problem

Shun-ichi GOTO shunichi.goto at gmail.com
Fri Apr 27 02:20:26 CDT 2007


2007/4/27, Lee Cantey <lcantey at gmail.com>:
> On 4/26/07, Shun-ichi GOTO <shunichi.goto at gmail.com> wrote:
> >
> > Realy? py2exe (ver 0.6.6) picks 4 pyd modules expectedly for me.
> > I tried again after removing lib\site-packages\mercurial and get success.
>
> I just double checked.  Python 2.4.3 with py2exe 0.6.6 doesn't bundle
> up base85.pyd, bdiff.pyd, or mpatch.pyd for me unless I put them in
> the mercurial directory manually (so I build, copy, build).  Odd that
> we see a difference here.

That's odd. I wonder it is effected by user own settings...
Anyway, I have tried again with newly cloned repo + 2 patches,
and get success.  Attach my operation log.
log says "copying build\lib.win32-2.4\mercurial\base85.pyd ->
C:\hg\hg-release\build\bdist.win32\winexe\collect-2.4\mercurial"
and so on.

I'm using:
 ActivePython 2.4.3 (+ many site-packages are installed)
 py2exe 0.6.6
 VisualStudio .NET 7.1 (msvc 13.10)
 patch #1 = for demandimport (msg2780 in issue457)
 patch #2 = for bundle hgext (attached in my mail on yesterday)

And command line I used is simple one line:
 python setup.py py2exe -b1

Is there somthing difference?

-- 
Shun-ichi GOTO
-------------- next part --------------
[c:\hg]hg clone hgcrew hg-release
requesting all changes
adding changesets
adding manifests
adding file changes
added 4378 changesets with 8420 changes to 603 files
521 files updated, 0 files merged, 0 files removed, 0 files unresolved

[c:\hg]cd hg-release

[c:\hg\hg-release]hg qimport \develop\hg\hg-mpatch\.hg\patches\py2exe-demandimport-with-b1
adding py2exe-demandimport-with-b1 to series file

[c:\hg\hg-release]hg qimport \develop\hg\hg-mpatch\.hg\patches\py2exe-force-bundle-hgext
adding py2exe-force-bundle-hgext to series file

[c:\hg\hg-release]hg qpush -a
applying py2exe-force-bundle-hgext
applying py2exe-demandimport-with-b1
Now at: py2exe-demandimport-with-b1

[c:\hg\hg-release]python24 setup.py py2exe -b1
running py2exe
running build_py
creating build
creating build\lib.win32-2.4
creating build\lib.win32-2.4\mercurial
copying mercurial\ancestor.py -> build\lib.win32-2.4\mercurial
copying mercurial\archival.py -> build\lib.win32-2.4\mercurial
copying mercurial\bundlerepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\byterange.py -> build\lib.win32-2.4\mercurial
copying mercurial\changegroup.py -> build\lib.win32-2.4\mercurial
copying mercurial\changelog.py -> build\lib.win32-2.4\mercurial
copying mercurial\cmdutil.py -> build\lib.win32-2.4\mercurial
copying mercurial\commands.py -> build\lib.win32-2.4\mercurial
copying mercurial\context.py -> build\lib.win32-2.4\mercurial
copying mercurial\demandimport.py -> build\lib.win32-2.4\mercurial
copying mercurial\dirstate.py -> build\lib.win32-2.4\mercurial
copying mercurial\fancyopts.py -> build\lib.win32-2.4\mercurial
copying mercurial\filelog.py -> build\lib.win32-2.4\mercurial
copying mercurial\help.py -> build\lib.win32-2.4\mercurial
copying mercurial\hg.py -> build\lib.win32-2.4\mercurial
copying mercurial\httprangereader.py -> build\lib.win32-2.4\mercurial
copying mercurial\httprepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\i18n.py -> build\lib.win32-2.4\mercurial
copying mercurial\keepalive.py -> build\lib.win32-2.4\mercurial
copying mercurial\localrepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\lock.py -> build\lib.win32-2.4\mercurial
copying mercurial\lsprof.py -> build\lib.win32-2.4\mercurial
copying mercurial\mail.py -> build\lib.win32-2.4\mercurial
copying mercurial\manifest.py -> build\lib.win32-2.4\mercurial
copying mercurial\mdiff.py -> build\lib.win32-2.4\mercurial
copying mercurial\merge.py -> build\lib.win32-2.4\mercurial
copying mercurial\node.py -> build\lib.win32-2.4\mercurial
copying mercurial\patch.py -> build\lib.win32-2.4\mercurial
copying mercurial\remoterepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\repo.py -> build\lib.win32-2.4\mercurial
copying mercurial\revlog.py -> build\lib.win32-2.4\mercurial
copying mercurial\sshrepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\sshserver.py -> build\lib.win32-2.4\mercurial
copying mercurial\statichttprepo.py -> build\lib.win32-2.4\mercurial
copying mercurial\streamclone.py -> build\lib.win32-2.4\mercurial
copying mercurial\strutil.py -> build\lib.win32-2.4\mercurial
copying mercurial\templater.py -> build\lib.win32-2.4\mercurial
copying mercurial\transaction.py -> build\lib.win32-2.4\mercurial
copying mercurial\ui.py -> build\lib.win32-2.4\mercurial
copying mercurial\util.py -> build\lib.win32-2.4\mercurial
copying mercurial\util_win32.py -> build\lib.win32-2.4\mercurial
copying mercurial\verify.py -> build\lib.win32-2.4\mercurial
copying mercurial\version.py -> build\lib.win32-2.4\mercurial
copying mercurial\__init__.py -> build\lib.win32-2.4\mercurial
copying mercurial\__version__.py -> build\lib.win32-2.4\mercurial
creating build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\common.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\hgwebdir_mod.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\hgweb_mod.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\request.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\server.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\wsgicgi.py -> build\lib.win32-2.4\mercurial\hgweb
copying mercurial\hgweb\__init__.py -> build\lib.win32-2.4\mercurial\hgweb
creating build\lib.win32-2.4\hgext
copying hgext\acl.py -> build\lib.win32-2.4\hgext
copying hgext\bugzilla.py -> build\lib.win32-2.4\hgext
copying hgext\extdiff.py -> build\lib.win32-2.4\hgext
copying hgext\fetch.py -> build\lib.win32-2.4\hgext
copying hgext\gpg.py -> build\lib.win32-2.4\hgext
copying hgext\graphlog.py -> build\lib.win32-2.4\hgext
copying hgext\hbisect.py -> build\lib.win32-2.4\hgext
copying hgext\hgk.py -> build\lib.win32-2.4\hgext
copying hgext\mq.py -> build\lib.win32-2.4\hgext
copying hgext\notify.py -> build\lib.win32-2.4\hgext
copying hgext\patchbomb.py -> build\lib.win32-2.4\hgext
copying hgext\purge.py -> build\lib.win32-2.4\hgext
copying hgext\transplant.py -> build\lib.win32-2.4\hgext
copying hgext\win32text.py -> build\lib.win32-2.4\hgext
copying hgext\__init__.py -> build\lib.win32-2.4\hgext
running build_ext
building 'mercurial.mpatch' extension
creating build\temp.win32-2.4
creating build\temp.win32-2.4\Release
creating build\temp.win32-2.4\Release\mercurial
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
 /MD /W3 /GX /DNDEBUG -IC:\python24\include -IC:\python24\PC /Tcmercurial/mpatch
.c /Fobuild\temp.win32-2.4\Release\mercurial/mpatch.obj
cl : ?R?}???h ???C?? warning D4029 : ?W???????W?R???p?C?????????K?????g?p??????
?????B
mpatch.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo
 /INCREMENTAL:NO /LIBPATH:C:\python24\libs /LIBPATH:C:\python24\PCBuild /EXPORT:
initmpatch build\temp.win32-2.4\Release\mercurial/mpatch.obj /OUT:build\lib.win3
2-2.4\mercurial\mpatch.pyd /IMPLIB:build\temp.win32-2.4\Release\mercurial\mpatch
.lib
   ???C?u???? build\temp.win32-2.4\Release\mercurial\mpatch.lib ???I?u?W?F?N?g b
uild\temp.win32-2.4\Release\mercurial\mpatch.exp ????????
building 'mercurial.bdiff' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
 /MD /W3 /GX /DNDEBUG -IC:\python24\include -IC:\python24\PC /Tcmercurial/bdiff.
c /Fobuild\temp.win32-2.4\Release\mercurial/bdiff.obj
cl : ?R?}???h ???C?? warning D4029 : ?W???????W?R???p?C?????????K?????g?p??????
?????B
bdiff.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo
 /INCREMENTAL:NO /LIBPATH:C:\python24\libs /LIBPATH:C:\python24\PCBuild /EXPORT:
initbdiff build\temp.win32-2.4\Release\mercurial/bdiff.obj /OUT:build\lib.win32-
2.4\mercurial\bdiff.pyd /IMPLIB:build\temp.win32-2.4\Release\mercurial\bdiff.lib

   ???C?u???? build\temp.win32-2.4\Release\mercurial\bdiff.lib ???I?u?W?F?N?g bu
ild\temp.win32-2.4\Release\mercurial\bdiff.exp ????????
building 'mercurial.base85' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
 /MD /W3 /GX /DNDEBUG -IC:\python24\include -IC:\python24\PC /Tcmercurial/base85
.c /Fobuild\temp.win32-2.4\Release\mercurial/base85.obj
cl : ?R?}???h ???C?? warning D4029 : ?W???????W?R???p?C?????????K?????g?p??????
?????B
base85.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo
 /INCREMENTAL:NO /LIBPATH:C:\python24\libs /LIBPATH:C:\python24\PCBuild /EXPORT:
initbase85 build\temp.win32-2.4\Release\mercurial/base85.obj /OUT:build\lib.win3
2-2.4\mercurial\base85.pyd /IMPLIB:build\temp.win32-2.4\Release\mercurial\base85
.lib
   ???C?u???? build\temp.win32-2.4\Release\mercurial\base85.lib ???I?u?W?F?N?g b
uild\temp.win32-2.4\Release\mercurial\base85.exp ????????
running build_scripts
creating build\scripts-2.4
copying and adjusting hg -> build\scripts-2.4
copying hgmerge -> build\scripts-2.4
creating C:\hg\hg-release\build\bdist.win32
creating C:\hg\hg-release\build\bdist.win32\winexe
creating C:\hg\hg-release\build\bdist.win32\winexe\collect-2.4
creating C:\hg\hg-release\build\bdist.win32\winexe\bundle-2.4
creating C:\hg\hg-release\build\bdist.win32\winexe\temp
creating C:\hg\hg-release\dist
*** searching for required modules ***
<<<snip>>>
*** copy extensions ***
copying C:\python24\DLLs\_socket.pyd -> C:\hg\hg-release\build\bdist.win32\winex
e\collect-2.4
copying C:\python24\DLLs\bz2.pyd -> C:\hg\hg-release\build\bdist.win32\winexe\co
llect-2.4
copying C:\python24\DLLs\unicodedata.pyd -> C:\hg\hg-release\build\bdist.win32\w
inexe\collect-2.4
copying C:\python24\DLLs\zlib.pyd -> C:\hg\hg-release\build\bdist.win32\winexe\c
ollect-2.4
copying C:\python24\lib\site-packages\_ctypes.pyd -> C:\hg\hg-release\build\bdis
t.win32\winexe\collect-2.4
copying C:\python24\lib\site-packages\win32\_win32sysloader.pyd -> C:\hg\hg-rele
ase\build\bdist.win32\winexe\collect-2.4
copying C:\python24\lib\site-packages\win32\win32api.pyd -> C:\hg\hg-release\bui
ld\bdist.win32\winexe\collect-2.4
copying C:\python24\lib\site-packages\win32\win32file.pyd -> C:\hg\hg-release\bu
ild\bdist.win32\winexe\collect-2.4
copying C:\python24\lib\site-packages\win32\win32process.pyd -> C:\hg\hg-release
\build\bdist.win32\winexe\collect-2.4
copying C:\python24\lib\site-packages\win32comext\shell\shell.pyd -> C:\hg\hg-re
lease\build\bdist.win32\winexe\collect-2.4\win32com\shell
copying build\lib.win32-2.4\mercurial\base85.pyd -> C:\hg\hg-release\build\bdist
.win32\winexe\collect-2.4\mercurial
copying build\lib.win32-2.4\mercurial\bdiff.pyd -> C:\hg\hg-release\build\bdist.
win32\winexe\collect-2.4\mercurial
copying build\lib.win32-2.4\mercurial\mpatch.pyd -> C:\hg\hg-release\build\bdist
.win32\winexe\collect-2.4\mercurial
<<<snip>>>
warning: py2exe: Version Info will not be included:
  could not parse version number '859dd92e7073'
Adding python24.dll to C:\hg\hg-release\dist\library.zip
The following modules appear to be missing
['MySQLdb', '_lsprof', '_ssl', 'packagescan']

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
   USER32.dll - C:\WINDOWS\system32\USER32.dll
   SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
   ole32.dll - C:\WINDOWS\system32\ole32.dll
   ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
   WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
   VERSION.dll - C:\WINDOWS\system32\VERSION.dll
   MSWSOCK.dll - C:\WINDOWS\system32\MSWSOCK.dll
   KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll

[c:\hg\hg-release]unzip -l dist\library.zip | grep pyd
warning [dist/library.zip]:  1871887 extra bytes at beginning or within zipfile
  (attempting to process anyway)
    49152  06/04/11 15:56   _socket.pyd
    77824  06/04/11 15:56   bz2.pyd
   405504  06/04/11 15:56   unicodedata.pyd
    69632  06/04/11 15:56   zlib.pyd
    86016  06/04/21 05:39   _ctypes.pyd
     4608  06/04/11 15:56   _win32sysloader.pyd
    69632  06/04/11 15:56   win32api.pyd
    77824  06/04/11 15:56   win32file.pyd
    26624  06/04/11 15:56   win32process.pyd
   126976  06/04/11 15:56   win32com/shell/shell.pyd
     5120  07/04/27 15:32   mercurial/base85.pyd
     7168  07/04/27 15:32   mercurial/bdiff.pyd
     7168  07/04/27 15:32   mercurial/mpatch.pyd


More information about the Mercurial mailing list