Skip to content
Erik Bray edited this page Sep 28, 2016 · 2 revisions

Just creating a place to jot down some notes on supporting psutil on Cygwin.

Build

I minimal cygwin installation that seems to be enough to build psutil and run the tests on Python 2 can be reproduced by setting up Cygwin with:

> setup-x86_64.exe -qnNdO -R C:\cygwin64 -s http://cygwin.mirror.constant.com -P make -P gcc-core -P python -P git -P wget

There isn't a cygports package for pip, so install it with

$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py

The tests for psutil use the ipaddress module, which for Python < 3.3 must be installed from PyPI (this should probably just be included in the list of dependencies installed by make setup-dev-env

$ pip install ipaddress

Now, from within the psutil source (which is presumed already checked out) we should be able to successfully run

$ make setup-dev-env

Followed by

$ make test

(where most of the tests are currently failing, but it should at least build the package and run through the test suite)

Clone this wiki locally