linux & users' python-extensions

John J. Lee phrxy at csv.warwick.ac.uk
Mon Apr 9 19:06:26 EDT 2001


On 9 Apr 2001, [iso-8859-2] Pawe³ Sto³owski wrote:

> I've installed Python into /usr/local/bin and /usr/local/lib/Python2.0.
> Now I'd like to allow an ordinary user to maintain his own python-extensions
> modules (written in C/C++). So, each user's python programs should see
> the global modules hierarchy, but also allow the user to import his own
> modules and link coresponding C/C++ modules, when needed. Is it possible
> without cluttering global Python-configuration each time an user needs
> to play with his new extension-module? I'm new to Python, so any help
[...]

There's no problem with that -- your users just have to set their
PYTHONPATH.  You can guess what that does from the name!  :)

Although documentation is sketchy ATM, Distutils does make things easier
with building extensions.


John




More information about the Python-list mailing list