diff options
author | Alejandro Enedino Hernandez Samaniego <alejandro.hernandez@linux.microsoft.com> | 2022-03-13 20:03:28 -0600 |
---|---|---|
committer | tgamblin <trevor.gamblin@windriver.com> | 2022-03-16 09:25:28 -0400 |
commit | bb9d3688f1b5a5f91ee3e1675bd802c5f9c189f3 (patch) | |
tree | 9cce95f2998ab0ffffd88d8ffe67590773da0e66 /meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py | |
parent | b2c6326c9c0b93d71a150500b304b23ea007f117 (diff) | |
download | meta-openembedded-bb9d3688f1b5a5f91ee3e1675bd802c5f9c189f3.tar.gz |
meta-python: Clean up recipes and classes that were moved to oe-core
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro.hernandez@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: tgamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py')
-rwxr-xr-x | meta-python/recipes-devtools/python/python3-cryptography/check-memfree.py | 10 |
1 files changed, 0 insertions, 10 deletions
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 @@ | |||
1 | #!/usr/bin/env python3 | ||
2 | # https://stackoverflow.com/questions/22102999/get-total-physical-memory-in-python/28161352 | ||
3 | import sys | ||
4 | meminfo = dict((i.split()[0].rstrip(':'),int(i.split()[1])) for i in open('/proc/meminfo').readlines()) | ||
5 | mem_free = meminfo['MemTotal']/1024./1024. | ||
6 | if mem_free < 2.: | ||
7 | raise RuntimeError("Insufficient free memory({:.3f}): requires > 2 GB".format(mem_free)) | ||
8 | sys.exit(1) | ||
9 | else: | ||
10 | print("Free memory: {:.3f} GB".format(mem_free)) | ||