lysnikolaou commented on code in PR #43606:
URL: https://github.com/apache/arrow/pull/43606#discussion_r1707332850


##########
python/CMakeLists.txt:
##########
@@ -855,6 +856,10 @@ set(CYTHON_FLAGS "${CYTHON_FLAGS}" "--warning-errors")
 # undocumented Cython feature.
 set(CYTHON_FLAGS "${CYTHON_FLAGS}" "--no-c-in-traceback")
 
+if(CYTHON_VERSION VERSION_GREATER_EQUAL "3.1.0a0")
+  set(CYTHON_FLAGS "${CYTHON_FLAGS}" "-Xfreethreading_compatible=True")

Review Comment:
   Whether PyArrow releases the GIL or not does not come into play here.
   
   Declaring the `freethreading_compatible` directive prevents the GIL from 
being re-enbaled by the runtime. If it were to not be added, then any 
downstream code doing `import pyarrow` would re-enable the GIL, because PyArrow 
has not declared that it supports free-threading.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to