Skip to content

Commit

Permalink
no more psutil
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Nov 11, 2023
1 parent 540feea commit bffdc00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions lenskit/util/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Debugging utility code. Also runnable as a Python command.
Usage:
lenskit.util.debug [options] --libraries
lenskit.util.debug [options] --blas-info
lenskit.util.debug [options] --numba-info
lenskit.util.debug [options] --check-env
Expand Down Expand Up @@ -133,14 +132,6 @@ def check_env():
return problems


def print_libraries():
p = psutil.Process()

_log.info('printing process libraries')
for map in p.memory_maps():
print(map.path)


def print_blas_info():
blas = blas_info()
print(blas)
Expand All @@ -158,8 +149,6 @@ def main():
logging.basicConfig(level=level, stream=sys.stderr, format='%(levelname)s %(name)s %(message)s')
logging.getLogger('numba').setLevel(logging.INFO)

Check warning on line 150 in lenskit/util/debug.py

View check run for this annotation

Codecov / codecov/patch

lenskit/util/debug.py#L150

Added line #L150 was not covered by tests

if opts['--libraries']:
print_libraries()
if opts['--blas-info']:
print_blas_info()
if opts['--numba-info']:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies = [
"scipy >= 1.8.0",
"numba >= 0.56, < 0.59",
"cffi >= 1.15.0",
"psutil >= 5",
"threadpoolctl >=3.0",
"binpickle >= 0.3.2",
"seedbank >= 0.1.0",
Expand Down

0 comments on commit bffdc00

Please sign in to comment.