psutil
psutil copied to clipboard
[Windows] msys2 support
Summary
- OS: Windows 11
- Type: core
- Msys2: https://www.msys2.org/
Description
➜ mongodb-src-r5.0.9 pip install -r etc/pip/compile-requirements.txt
Ignoring pypiwin32: markers 'sys_platform == "win32" and python_version > "3"' don't match your environment
Ignoring pywin32: markers 'sys_platform == "win32" and python_version > "3"' don't match your environment
Collecting psutil<=5.8.0
Downloading psutil-5.8.0.tar.gz (470 kB)
|████████████████████████████████| 470 kB 528 kB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python.exe -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ueyvtb0_/psutil_3ac6a60d5b4e4514976b8c0d4275708e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ueyvtb0_/psutil_3ac6a60d5b4e4514976b8c0d4275708e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rwhf9mxr
cwd: /tmp/pip-install-ueyvtb0_/psutil_3ac6a60d5b4e4514976b8c0d4275708e/
Complete output (1 lines):
platform cygwin is not supported
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz#sha256=0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6 (from https://pypi.org/simple/psutil/) (requires-python:>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Downloading psutil-5.7.3.tar.gz (465 kB)
|████████████████████████████████| 465 kB 571 kB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python.exe -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ueyvtb0_/psutil_c55928aad9874bea814056b071b9eee2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ueyvtb0_/psutil_c55928aad9874bea814056b071b9eee2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ee8ydb9m
cwd: /tmp/pip-install-ueyvtb0_/psutil_c55928aad9874bea814056b071b9eee2/
Complete output (1 lines):
platform cygwin is not supported
----------------------------------------
➜ mongodb-src-r5.0.9 grep -Rn 'psutil' *
buildscripts/evergreen_resmoke_job_count.py:11:import psutil
buildscripts/evergreen_resmoke_job_count.py:17:CPU_COUNT = psutil.cpu_count()
buildscripts/resmokelib/hang_analyzer/hang_analyzer.py:21:import psutil
buildscripts/resmokelib/hang_analyzer/hang_analyzer.py:215: usage_percent = psutil.disk_usage(".").percent
buildscripts/resmokelib/hang_analyzer/process.py:12:import psutil
buildscripts/resmokelib/hang_analyzer/process.py:121: psutil.Process(pid).suspend()
buildscripts/resmokelib/hang_analyzer/process.py:122: except psutil.NoSuchProcess as err:
buildscripts/resmokelib/hang_analyzer/process.py:131: psutil.Process(pid).resume()
buildscripts/resmokelib/hang_analyzer/process.py:132: except psutil.NoSuchProcess as err:
buildscripts/resmokelib/hang_analyzer/process.py:142: proc = psutil.Process(pid)
buildscripts/resmokelib/hang_analyzer/process.py:151: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/lib/process_control.py:3:import psutil
buildscripts/resmokelib/powercycle/lib/process_control.py:24: for proc in psutil.process_iter():
buildscripts/resmokelib/powercycle/lib/process_control.py:28: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/lib/process_control.py:37: procs.append(psutil.Process(pid))
buildscripts/resmokelib/powercycle/lib/process_control.py:38: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/lib/process_control.py:45: if psutil.pid_exists(pid):
buildscripts/resmokelib/powercycle/lib/process_control.py:55: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/powercycle.py:28:import psutil
buildscripts/resmokelib/powercycle/powercycle.py:218: # psutil.NoSuchProcess exception if the creation time for the process with pid=parent.pid is
buildscripts/resmokelib/powercycle/powercycle.py:220: # 'parent' is the same psutil.Process instance returned by start_cmd() and therefore has an
buildscripts/resmokelib/powercycle/powercycle.py:223: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/powercycle.py:233: except psutil.NoSuchProcess:
buildscripts/resmokelib/powercycle/powercycle.py:236: _, alive = psutil.wait_procs(procs, timeout=30, callback=None)
buildscripts/resmokelib/powercycle/powercycle.py:315: # We use psutil.Popen() rather than subprocess.Popen() in order to cache the creation time of
buildscripts/resmokelib/powercycle/powercycle.py:317: proc = psutil.Popen(cmd, close_fds=True)
buildscripts/resmokelib/powercycle/powercycle.py:558: boot_time_epoch = psutil.boot_time()
buildscripts/resmokelib/powercycle/powercycle.py:927: partitions = psutil.disk_partitions()
buildscripts/resmokelib/sighandler.py:11:import psutil
buildscripts/resmokelib/sighandler.py:127: parent = psutil.Process() # current process
buildscripts/resmokelib/sighandler.py:146: proc = psutil.Process(pid)
buildscripts/resmokelib/sighandler.py:149: except psutil.NoSuchProcess:
buildscripts/tests/test_evergreen_resmoke_job_count.py:5:import psutil
buildscripts/tests/test_evergreen_resmoke_job_count.py:13: cpu_count = psutil.cpu_count()
etc/pip/components/core.req:2:psutil <= 5.8.0
SConstruct:47:import psutil
SConstruct:4468:# psutil it will instead report the correct number when in a container.
SConstruct:4483:cpu_count = psutil.cpu_count()
SConstruct:4485: # psutil.cpu_count returns None when it can't determine the
src/third_party/wiredtiger/bench/wtperf/wtperf_run_py/wtperf_run.py:34:import psutil
src/third_party/wiredtiger/bench/wtperf/wtperf_run_py/wtperf_run.py:108: total_memory_gb = psutil.virtual_memory().total / (1024 * 1024 * 1024)
src/third_party/wiredtiger/bench/wtperf/wtperf_run_py/wtperf_run.py:114: 'cpu_physical_cores': psutil.cpu_count(logical=False),
src/third_party/wiredtiger/bench/wtperf/wtperf_run_py/wtperf_run.py:115: 'cpu_logical_cores': psutil.cpu_count(),
src/third_party/wiredtiger/test/evergreen.yml:613: ${pip3_binary} install psutil pygit2
To sum up, I need to use psutil in msys2. Can you provide some books or references to help psutil support msys2 to compile linux software on windows?
cygwin is currently not supported. Closing as duplicate.