[Python-apps-team] Where to install C extensions?

Nikolaus Rath Nikolaus at rath.org
Mon Nov 28 15:32:02 UTC 2011



Stefano Rivera <stefanor-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org> writes:
> Hi Nikolaus (2011.11.27_22:50:39_+0200)
>> I have an application that installs a (private) extension module. How is
>> this best handled?
>> 
>> If I change --install-lib to /usr/share/[package], I get lots of .py
>> files there, which does not seem nice either.
>
> I assume you mean /usr/lib/[package]

Yes.

>> Are there any better options?
>
> Modify sys.path in your scripts?

The scripts are generated by setuptools for the entry_points defined in
setup.py and load the module using pkg_resources, so I don't think this
is easily done.


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C




More information about the Python-apps-team mailing list