[Nix-dev] Python/Perl/Ruby packages
Armijn Hemel
armijn at uulug.nl
Sun Aug 3 00:29:11 CEST 2008
hi Pjotr,
> I am about to introduce Perl/Python/Ruby libraries to NIX (for the
> BioLib project). These languages can include shared libraries, and
> normally they are found in something like
> /usr/lib/ruby/version/package. This setup suffers destructive updates
> (ugh), but also NIX won't allow it. Building with NIX will make a new
> item in the store for the package - which is good.
>
> My question is: how do Perl/Python/Ruby programs find these paths? I
> don't suppose the PYTHONPATH gets updated for the new packages. How
> is it handled, for example for the Python PIL package? What is the way to
> handle it transparently for the user?
In case of the 'pil' package the Python setup tools are used. This takes
care of embedding the path to the Python interpreter.
If you look at PyXML you will see that a wrapper script is generated
which sets PYTHONPATH.
armijn
--
-------------------------------------------------------------------------
armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
-------------------------------------------------------------------------
More information about the nix-dev
mailing list