C extensions placed in wrong directory on karmic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
High
|
Martin Pool | ||
bzr (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
python2.6 (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
In Karmic, it seems that distutils build_ext puts compiled extensions into eg 'bzrlib/
----
C extensions are placed in bzrlib/bzrlib and thus are not used.
$make
setup.py build_ext -i
running build_ext
building 'bzrlib.
creating .../iter-
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
building 'bzrlib.
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
...
description: | updated |
Changed in bzr: | |
assignee: | nobody → Ian Clatworthy (ian-clatworthy) |
summary: |
- C extensions placed in wrong directory + C extensions placed in wrong directory on karmic |
affects: | python-defaults (Ubuntu) → python2.6 (Ubuntu) |
Changed in python2.6 (Ubuntu): | |
importance: | Undecided → High |
On karmic, with bzr.dev r4479
jml@truth: ~/src/bzr/ trunk$ make _bencode_ pyx' extension linux-x86_ 64-2.6 linux-x86_ 64-2.6/ bzrlib aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/ include/ python2. 6 -c bzrlib/ _bencode_ pyx.c -o build/temp. linux-x86_ 64-2.6/ bzrlib/ _bencode_ pyx.o _bencode_ pyx.c:2414: warning: ‘__Pyx_GetItemInt’ defined but not used _bencode_ pyx.c:2429: warning: ‘__Pyx_SetItemInt’ defined but not used src/bzr/ bzr.dev/ bzrlib/ bzrlib functions build/temp. linux-x86_ 64-2.6/ bzrlib/ _bencode_ pyx.o -o /home/jml/ src/bzr/ bzr.dev/ bzrlib/ bzrlib/ _bencode_ pyx.so _btree_ serializer_ pyx.pyx --> bzrlib/ _btree_ serializer_ pyx.c python2. 6/dist- packages/ Pyrex/Compiler/ Scanning. py:39: DeprecationWarning: the md5 module is deprecated; use hashlib instead _btree_ serializer_ pyx' extension aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/ include/ python2. 6 -c bzrlib/ _btree_ serializer_ pyx.c -o build/temp. linux-x86_ 64-2.6/ bzrlib/ _btree_ serializer_ pyx.o _btree_ serializer_ pyx.c: In function ‘__pyx_ f_6bzrlib_ 21_btree_ serializer_ pyx_safe_ string_ from_size’ : _btree_ serializer_ pyx.c:187: warning: cast from pointer to integer of different size _btree_ serializer_ pyx.c: In function ‘__pyx_ f_6bzrlib_ 21_btree_ serializer_ pyx_safe_ interned_ string_ from_size’ : _btree_ serializer_ pyx.c:239: warning: cast from pointer to integer of different size
building extension modules.
python setup.py build_ext -i
running build_ext
building 'bzrlib.
creating build
creating build/temp.
creating build/temp.
gcc -pthread -fno-strict-
bzrlib/
bzrlib/
creating /home/jml/
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
pyrexc bzrlib/
/usr/lib/
import md5
building 'bzrlib.
gcc -pthread -fno-strict-
bzrlib/
bzrlib/
bzrlib/
bzrlib/
...
On karmic with 1.16,
jml@truth: ~/src/bzr/ bzr.1.16$ make _bencode_ pyx' extension linux-x86_ 64-2.6 linux-x86_ 64-2.6/ bzrlib aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/ include/ python2. 6 -c bzrlib/ _bencode_ pyx.c -o build/temp. linux-x86_ 64-2.6/ bzrlib/ _bencode_ pyx.o _bencode_ pyx.c:2414: warning: ‘__Pyx_GetItemInt’ defined but not used _bencode_ pyx.c:2429: warning: ‘__Pyx_SetItemInt’ defined but not used src/bzr/ bzr.1.16/ bzrlib/ bzrlib functions build/temp. linux-x86_ 64-2.6/ bzrlib/ _bencode_ pyx.o -o /home/jml/ src/bzr/ bzr.1.16/ bzrlib/ bzrlib/ _bencode_ pyx.so _btree_ serializer_ c' extension aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/ include/ python2. 6 -c bzrlib/ _btree_ serializer_ c.c -o build/temp. linux-x86_ 64-2.6/ bzrlib/ _btree_ serializer_ c.o _btree_ serializer_ c.c: In function ‘__pyx_ f_19_btree_ serializer_ c_safe_ string_ from_size’ : _btree_ serializer_ c.c:144: warning: cast from pointer to integer of different size _btree_ serializer_ c.c: In function ‘__pyx_ f_19_btree_ serializer_ c_safe_ interned_ string_ from_size’ : _btree_ serializer_ c.c:200: warning: cast from pointer to integer of different s...
building extension modules.
python setup.py build_ext -i
running build_ext
building 'bzrlib.
creating build
creating build/temp.
creating build/temp.
gcc -pthread -fno-strict-
bzrlib/
bzrlib/
creating /home/jml/
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
building 'bzrlib.
gcc -pthread -fno-strict-
bzrlib/
bzrlib/
bzrlib/
bzrlib/