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

Re: Questions regarding a package that creates a python module (written in C)

Hi, Jakub.

On May 26 2010, Jakub Wilk wrote:
> * Rogério Brito <rbrito@ime.usp.br>, 2010-05-26, 14:28:
> >I would like (in principle, barring technical limitations) to provide
> >such modules for any version of python that Debian supports,
> >agnostically.
> That's very nice of you. :)

Thank you very much. I want to be prepared to the migration of python
2.6 (and 2.7 and ...).

> >It is my understanding from the build system of fontforge that it only
> >picks up python2.5 since it is the first version that is encountered.
> Yes, most likely this is the case. I haven't seen any upstream build
> system that supports building/installing module for multiple Python
> version on its own initiative.


> >With that said, what is the recommended course of action? Should I
> >manually build the package twice in a row in debian/rules telling it
> >first to configure with python 2.5 and then 2.6
> Yes. Please don't hardcorde version numbers in debian/rules,
> however; use `pyversions -r` to query which Python versions are
> supported.

Right, right. I am against hardcoding anything, in principle. :-)

> >or is there any solid, recommended approach to this problem (which
> >I am sure should appear in many other packages that provide python
> >modules written in C)?
> For distutils-based build systems (i.e., not for fontforge), dh(1)
> builds modules for all supported Python versions (almost) out of the
> box.

So, summarizing, this would mean that I would have to force feed the
configure script of fontforge for each python version, if I understood
it correctly?

> I'm sure that cdbs has a way to automatize this task, too (though I
> don't recommend cdbs to anyone).

I'm not really interested in cdbs. I actually am migrating away the
packages that I have from it to dh.

Thanks for your response, Rogério Brito.

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Reply to: