How to install setproctitle for Python 3
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Mon May 21 17:39:59 UTC 2012
At Sat, 19 May 2012 20:20:32 +0000,
"Spain, Dr. Jeffry A." <spainj at countryday.net> wrote:
> 1. The source code for setproctitle is available from http://pypi.python.org/pypi/setproctitle
> 2. When Python 3 is installed from source has to have "--enable-shared" specified as an argument to "configure".
> 3. There is a Makefile in setproctitle-1.1.6/ that has to be edited to read:
> # Customize these to select the Python to build/test
> PYTHON ?= python3
> PYCONFIG ?= python3-config
> PY2TO3 ?= 2to3
> 4. Executing make at this point builds and tests the setproctitle code with no errors.
>
> Beyond this it isn't clear to me how to install this module as a permanent component of Python 3. The setproctitle documentation refers to a tool called "distribute", which is said to be a replacement for "easy_install", but doesn't specify how to use it. "easy_install" itself seems to apply to Python 2.
>
> Thanks for your advice about how to proceed. Unfortunately my facility with Python is limited at this point.
This will be highly system dependent, but on my MacOS Lion with
Python3 installed via the Homebrew package system, the following
works:
% python3.2 /usr/local/bin/easy_install setproctitle
---
JINMEI, Tatuya
Internet Systems Consortium, Inc.
More information about the bind10-users
mailing list