Toblerity/rtree

Are there duplicate binaries for libspatialindex in the pip wheels?

dazza-codes opened this issue ยท 1 comments

Follow-on from #114 and #147 ๐ŸŽ‰

But, are there duplicate binaries for libspatialindex in the wheel?

$ poetry show rtree
name         : rtree
version      : 0.9.7
description  : R-Tree spatial index for Python GIS

Looking into the site-packages on an Ubuntu 18.04 venv with python 3.7:

$ ll python/lib/python3.7/site-packages/rtree/
total 132K
drwxr-xr-x  3 joe joe 4.0K Mar  9 11:12 ./
drwxr-xr-x 84 joe joe 4.0K Mar  9 11:12 ../
-rw-r--r--  1 joe joe  27K Mar  9 11:12 core.py
-rw-r--r--  1 joe joe   95 Mar  9 11:12 exceptions.py
-rw-r--r--  1 joe joe 3.7K Mar  9 11:12 finder.py
-rw-r--r--  1 joe joe  80K Mar  9 11:12 index.py
-rw-r--r--  1 joe joe  179 Mar  9 11:12 __init__.py
drwxr-xr-x  2 joe joe 4.0K Mar  9 11:12 lib/

$ ll python/lib/python3.7/site-packages/rtree/lib/
total 1.6M
drwxr-xr-x 2 joe joe 4.0K Mar  9 11:12 ./
drwxr-xr-x 3 joe joe 4.0K Mar  9 11:12 ../
-rwxr-xr-x 1 joe joe 262K Mar  9 11:12 libspatialindex_c.so*
-rwxr-xr-x 1 joe joe 1.3M Mar  9 11:12 libspatialindex.so*

$ ll python/lib/python3.7/site-packages/Rtree.libs/
total 1.4M
drwxr-xr-x  2 joe joe 4.0K Mar  9 11:12 ./
drwxr-xr-x 84 joe joe 4.0K Mar  9 11:12 ../
-rwxr-xr-x  1 joe joe 1.4M Mar  9 11:12 libspatialindex-bf66e7c6.so.6.1.1*

Actually, forget it, an ldd shows that libspatialindex_c.so* is linked to libspatialindex-bf66e7c6.so.6.1.1*

$ ldd /opt/conda/envs/gis/lib/python3.7/site-packages/rtree/lib/libspatialindex.so 
	linux-vdso.so.1 (0x00007ffcfa59b000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9250938000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f925059a000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9250382000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f924ff91000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9250fcf000)

$ ldd /opt/conda/envs/gis/lib/python3.7/site-packages/rtree/lib/libspatialindex_c.so 
	linux-vdso.so.1 (0x00007ffc0b1c0000)
	libspatialindex-bf66e7c6.so.6.1.1 => /opt/conda/envs/gis/lib/python3.7/site-packages/rtree/lib/../../Rtree.libs/libspatialindex-bf66e7c6.so.6.1.1 (0x00007f280e731000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f280e3a8000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f280e00a000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f280ddf2000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f280da01000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f280ec96000)