From bb9d3688f1b5a5f91ee3e1675bd802c5f9c189f3 Mon Sep 17 00:00:00 2001 From: Alejandro Enedino Hernandez Samaniego Date: Sun, 13 Mar 2022 20:03:28 -0600 Subject: meta-python: Clean up recipes and classes that were moved to oe-core Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Khem Raj Signed-off-by: tgamblin --- .../python/python3-cryptography/check-memfree.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py (limited to 'meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py') diff --git a/meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py b/meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py deleted file mode 100755 index c111a9074c..0000000000 --- a/meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python3 -# https://stackoverflow.com/questions/22102999/get-total-physical-memory-in-python/28161352 -import sys -meminfo = dict((i.split()[0].rstrip(':'),int(i.split()[1])) for i in open('/proc/meminfo').readlines()) -mem_free = meminfo['MemTotal']/1024./1024. -if mem_free < 2.: - raise RuntimeError("Insufficient free memory({:.3f}): requires > 2 GB".format(mem_free)) - sys.exit(1) -else: - print("Free memory: {:.3f} GB".format(mem_free)) -- cgit v1.2.3-54-g00ecf