pitrou commented on a change in pull request #7305:
URL: https://github.com/apache/arrow/pull/7305#discussion_r433801419



##########
File path: dev/tasks/conda-recipes/clean.py
##########
@@ -0,0 +1,66 @@
+from distutils.version import LooseVersion
+from subprocess import check_output, check_call
+from typing import List
+
+import json
+import os
+import pandas as pd
+import sys
+
+
+VERSIONS_TO_KEEP = 5
+PLATFORMS = ["linux-64", "osx-64", "win-64"]
+PACKAGES = ["pyarrow", "arrow-cpp"]
+
+
+def packages_to_delete(package_name: str, platform: str) -> List[str]:
+    env = os.environ.copy()
+    env["CONDA_SUBDIR"] = platform
+    pkgs_json = check_output(
+        [
+            "mamba",

Review comment:
       Is "mamba" really required for this to work?




----------------------------------------------------------------
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.

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


Reply via email to