[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ideal directory structure?



Le samedi 30 janvier 2010 à 14:34 +1100, Ben Finney a écrit : 
> * For the more usual case where the library is only of interest in your
>   specific application, install it to an application-specific location
>   (generally somewhere under ‘/usr/share/foo/’) and explicitly add that
>   filesystem path to the import search path::
> 
>       import sys
> 
>       sys.path.append(os.path.join('/', 'usr', 'share', 'foo', 'foolib'))
>       import wibble
>       import warble
> 
> Whichever you choose, actually *getting* the modules to the right place
> is the job of a build system. Setuptools can be coaxed into doing this
> job with difficulty; I don't know if others make it any easier.

Despite its flaws, I still recommend to use autoconf to do that. It does
a very good job at installing files to the right place depending on the
configuration; after all it was designed for that.

-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


Reply to: