DOI-USGS / SpiceQL

Spice Query Library
Other
0 stars 4 forks source link

Install just python bindings? #7

Closed jlaura closed 8 months ago

jlaura commented 10 months ago

Is it possible to install just the python bindings? For example, if I want to make use of ale with the SpiceQL service there is a pyspiceql dependency. Do I need the C++ components?

Kelvinrr commented 8 months ago

Python bindings I think necessarily need to link against the C++ library. As the bindings are calling symbols from the library.

(base) $ otool -L  bindings/python/pyspiceql/_pyspiceql.so
bindings/python/pyspiceql/_pyspiceql.so:
        @rpath/libSpiceQL.0.dylib (compatibility version 0.0.0, current version 1.0.0)
        @rpath/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

So, I don't think it's possible to not ship the C++ lib. It might be possible to create a trimmed down version of the C++ lib with only necessary symbols, but the Python lib wraps a majority of the library so I don't think that would be of much value.

We should probably make separate pyspiceql and spiceql recipes. But it would be more like pyspiceql being a superset of spiceql.