jorisvandenbossche commented on a change in pull request #10769:
URL: https://github.com/apache/arrow/pull/10769#discussion_r681161372



##########
File path: dev/archery/archery/compat.py
##########
@@ -49,3 +50,10 @@ def _stringify_path(path):
             return str(path)
 
     raise TypeError("not a path-like object")
+
+
+def _import_pandas():
+    # ARROW-13425: avoid importing PyArrow from Pandas
+    sys.modules['pyarrow'] = None

Review comment:
       Sorry, also not directly an idea. Setting this to None generally makes 
pyarrow non-importable? (also for other packages that might get imported after 
pandas?) 
   In general archery shouldn't use (directly or indirectly) pyarrow, so I 
think either way is fine.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to