File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
# Find and copy the binary libbson file, unless
15
15
# MONGO_NO_COPY_LIBBSON is set (for instance in a conda build).
16
- COPY_LIBBSON = not os .environ .get ("MONGO_NO_COPY_LIBBSON" , False )
16
+ COPY_LIBBSON = not os .environ .get ("MONGO_NO_COPY_LIBBSON" , "" )
17
+
18
+ # Whether to create libarrow symlinks on posix systems.
19
+ CREATE_LIBARROW_SYMLINKS = os .environ .get ("MONGO_CREATE_LIBARROW_SYMLINKS" , "1" )
17
20
18
21
19
22
def query_pkgconfig (cmd ):
@@ -136,7 +139,7 @@ def append_arrow_flags(ext):
136
139
ext .libraries .extend (pa .get_libraries ())
137
140
ext .library_dirs .extend (pa .get_library_dirs ())
138
141
139
- if os .name != "nt" :
142
+ if os .name != "nt" and CREATE_LIBARROW_SYMLINKS :
140
143
# On Linux and MacOS, we must run pyarrow.create_library_symlinks()
141
144
# as a user with write access to the directory where pyarrow is
142
145
# installed.
You can’t perform that action at this time.
0 commit comments