File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ workspace = true
2121[lib ]
2222crate-type = [" rlib" , " cdylib" ]
2323
24+ [features ]
25+ default = [" extension-module" ]
26+ # Enable this feature when building the standalone Python extension.
27+ # Disable it when using vortex-python as a library dependency to avoid
28+ # duplicate PyInit__lib symbols.
29+ extension-module = []
30+
2431[dependencies ]
2532arrow-array = { workspace = true }
2633arrow-data = { workspace = true }
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ static SESSION: LazyLock<VortexSession> =
4747 LazyLock :: new ( || VortexSession :: default ( ) . with_handle ( RUNTIME . handle ( ) ) ) ;
4848
4949/// Vortex is an Apache Arrow-compatible toolkit for working with compressed array data.
50+ #[ cfg( feature = "extension-module" ) ]
5051#[ pymodule]
5152fn _lib ( py : Python , m : & Bound < PyModule > ) -> PyResult < ( ) > {
5253 Python :: attach ( |py| -> PyResult < ( ) > {
You can’t perform that action at this time.
0 commit comments