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

Nikolaus Rath Nikolaus at rath.org
Mon Nov 28 22:16:28 UTC 2011



Stefano Rivera <stefanor-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org> writes:
> Hi Nikolaus (2011.11.28_17:32:02_+0200)
>> >> 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.
>
> If it's an arch-dependant package, that's a totally acceptable place to
> put it. It may not be pretty, but it's not problematic.

I'll do that then. Looks like the least-worst solution to me.

>> 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.
>
> Easy enough to write your own, instead :)

I think there was a reason why setuptools added this functionality in
the first place, even if I can't remember it right now :-).

I think in the long term someone ought to patch Debian's setuptools
package to add a new --install-arch-lib option and to generate suitable
scripts.


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