Dulwich C extensions and stand-alone Windows installation of bzr

Vincent Ladeuil vila+bzr at canonical.com
Mon Sep 12 08:21:35 UTC 2011


>>>>> Eli Zaretskii <eliz at gnu.org> writes:

    > I use GCC for many years, on several different platforms.  So
    > seeing a command that runs on a GNU system tells me enough to
    > adapt it to Windows.

Ok !

    >> running 'python setup.py build_ext -i -v' in bzr trunk:
    >> 
    >> running build_ext
    >> building 'bzrlib._annotator_pyx' extension
    >> creating build/temp.linux-x86_64-2.7
    >> creating build/temp.linux-x86_64-2.7/bzrlib
    >> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bzrlib/_annotator_pyx.c -o build/temp.linux-x86_64-2.7/bzrlib/_annotator_pyx.o

    > Thanks, that's a beginning.  The final commands that create a .so file
    > from *.o object files would be nice, as well as command(s) that copy
    > the .so to its final destination.

Bah, sorry:

$ python setup.py build_ext -i -v
running build_ext
building 'bzrlib._annotator_pyx' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/bzrlib
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bzrlib/_annotator_pyx.c -o build/temp.linux-x86_64-2.7/bzrlib/_annotator_pyx.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/bzrlib/_annotator_pyx.o -o /home/vila/src/bzr/trunk/bzrlib/_annotator_pyx.so
building 'bzrlib._bencode_pyx' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bzrlib/_bencode_pyx.c -o build/temp.linux-x86_64-2.7/bzrlib/_bencode_pyx.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/bzrlib/_bencode_pyx.o -o /home/vila/src/bzr/trunk/bzrlib/_bencode_pyx.so
building 'bzrlib._chunks_to_lines_pyx' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bzrlib/_chunks_to_lines_pyx.c -o build/temp.linux-x86_64-2.7/bzrlib/_chunks_to_lines_pyx.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/bzrlib/_chunks_to_lines_pyx.o -o /home/vila/src/bzr/trunk/bzrlib/_chunks_to_lines_pyx.so

.. and so on for all extensiosn, i.e. each extension is a single .so and
it's stored in the bzrlib directory  itself (i.e. when running from
sources it's found there).

   Vincent



More information about the bazaar mailing list