[Build-common-hackers] Patch proposal fpr puthon-distutils.mk.in

Andreas Rottmann a.rottmann@gmx.at
Sun, 31 Aug 2003 21:38:53 +0200


Hi!

I have one source package that has both a (C++) libary and Python
bindings for this libary. The Python bindings are in a subdirectory
named 'python'. It's not possible to build the bindings with the
current CDBS, as it only supports setup.py in $(DEB_SRCDIR). The
attached patch provides a new variable named DEB_PYTHON_DIR, which
defaults to '.'. The setup.py is assumed to be in
$(DEB_SRCDIR)/$(DEB_PYTHON_DIR). Furthermore, the patch invokes all
python versions in DEB_PYTHON_VERSIONS for the clean and build
targets, if DEB_PYTHON_REAL_LIB_PACKAGES is set. I'm not really sure I
got this part right, so please flame on ;-).

Corrections, suggestions, and flames are welcome, as well as
directions what o do to get this into cdbs (file a bug?).

Regards and thanks for your work on CDBS!
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Python is executable pseudocode, Perl is executable line-noise.