Tuesday, September 9, 2014

Compile and build psutil on osx 10.9


Compile and build psutil on osx 10.9

  1. Download source from :https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz#md5=72a6b15d589fab11f6ca245b775bc3c6
  2. Make sure specify right Xcode: sudo xcode-select --switch /Tool/Xcode.app
  3. Make sure installed command line tool: sudo xcode-select --install
  4. Make sure clang ignore some error:  export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
  5. Go to psutil folder and run 'make' command.
  6. Compiled/builded psutil will be in :  build/lib.macosx-10.9-intel-2.7