We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e2116 commit f08c458Copy full SHA for f08c458
dev/conda/find-pkg.py
@@ -8,7 +8,7 @@
8
# NOTE: Logging output must go on stderr,
9
# stdout is captured by the shell script!
10
11
-import argparse, json, os
+import argparse, json, os, sys
12
13
parser = argparse.ArgumentParser(description="Show the package name")
14
parser.add_argument("filename", help="The repodata.json file")
@@ -30,8 +30,12 @@ def fail(msg):
30
with open(args.filename, "r") as fp:
31
J = json.load(fp)
32
33
-# This was "packages" in older versions:
34
-pkg_key = "packages.conda"
+# This key seems to change by version:
+if sys.version_info.minor == 8:
35
+ # Python 3.8.18 2025-02-06:
36
+ pkg_key = "packages"
37
+else:
38
+ pkg_key = "packages.conda"
39
40
def show_repodata(J):
41
say("full JSON:")
0 commit comments