-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
#4130 by @gvanrossum, in Oct 2017, added a dependency to psutil >= 5.4.0 < 5.5.0. From git blame I see how the psutil dependency has since been made optional, but the version boundaries have never been touched and I can't find any reasoning behind them.
The only place I could find where psutil is used is:
Lines 568 to 573 in d387906
process = psutil.Process(os.getpid()) | |
meminfo = process.memory_info() | |
res['memory_rss_mib'] = meminfo.rss / MiB | |
res['memory_vms_mib'] = meminfo.vms / MiB | |
if sys.platform == 'win32': | |
res['memory_maxrss_mib'] = meminfo.peak_wset / MiB |
I just tested the above code snippet on the following anaconda setups, and they all worked fine:
- Linux, python=3.5.0, psutil=4.0.0
- Linux, python=3.7.3, psutil=5.6.2
- Windows 10, python=3.5.0, psutil=4.0.0
- Windows 10, python=3.7.3, psutil=5.6.2
From my tests it looks like peak_wset was added in psutil 4.0, even if it's not mentioned in the changelog https://github.com/giampaolo/psutil/blob/master/HISTORY.rst.
Any objections to changing the dependency to psutil >= 4.0?
Metadata
Metadata
Assignees
Labels
No labels