[PATCH 1 of 2] setup: compile hg.exe

Adrian Buehlmann adrian at cadifra.com
Fri Jun 29 06:06:58 CDT 2012


On 2012-06-29 12:54, Adrian Buehlmann wrote:
> On 2012-06-29 12:05, Mads Kiilerich wrote:
>> On 29/06/12 11:57, Adrian Buehlmann wrote:
>>> # HG changeset patch
>>> # User Adrian Buehlmann <adrian at cadifra.com>
>>> # Date 1340963615 -7200
>>> # Node ID 77c83a98257a4d77b535f2842a0e1805a8a0dafb
>>> # Parent  fba17a64fa4978bfea19222da5e64a18cfddeecd
>>> setup: compile hg.exe
>>>
>>> This implements a new command
>>>
>>>    $ python setup.py build_hgexe -i
>>>
>>> which places the hg.exe in the root of the source tree.
>>
>> How will this fly on non-windows?
> 
> What's your problem?

Nevermind. I see what you mean:

adi at kork-ubuntu64:~/hgrepos/hg-main$ make local
python setup.py  build_py -c -d . build_ext -i build_hgexe -i build_mo
running build_py
byte-compiling ./mercurial/revset.py to revset.pyc
byte-compiling ./mercurial/copies.py to copies.pyc
byte-compiling ./mercurial/discovery.py to discovery.pyc
byte-compiling ./mercurial/win32.py to win32.pyc
byte-compiling ./mercurial/repair.py to repair.pyc
byte-compiling ./mercurial/subrepo.py to subrepo.pyc
byte-compiling ./hgext/keyword.py to keyword.pyc
byte-compiling ./hgext/rebase.py to rebase.pyc
byte-compiling ./hgext/mq.py to mq.pyc
byte-compiling ./hgext/transplant.py to transplant.pyc
byte-compiling ./hgext/convert/subversion.py to subversion.pyc
running build_ext
running build_hgexe
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
mercurial/exewrapper.c -o build/temp.linux-x86_64-2.7/mercurial/exewrapper.o
mercurial/exewrapper.c:11:21: fatal error: windows.h: No such file or
directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [local] Error 1


More information about the Mercurial-devel mailing list