]> granicus.if.org Git - postgresql/commit
The attached patch changes src/interfaces/python/GNUmakefile to use the
authorBruce Momjian <bruce@momjian.us>
Fri, 25 May 2001 14:29:39 +0000 (14:29 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 25 May 2001 14:29:39 +0000 (14:29 +0000)
commiteeca4bdb3152a847214fb65321b846bc37a67393
tree6cb4aed221f60a45d452aee252e33425ffd856b6
parent74068dfed65c3a681cb2724ad320d007d3dbb662
The attached patch changes src/interfaces/python/GNUmakefile to use the
value of DESTDIR like the rest (or at least most) of the PostgreSQL
makefiles.  I found this problem when trying to package a pre-built
Cygwin PostgreSQL distribution, but this problem is platform independent.

The problem manifests itself when one tries to install into a stagging
area (e.g., to build a tarball) instead of a real install.  In this case,
pg.py and _pgmodule$(SO) still end up being installed in the configured
prefix directory ignoring the value of DESTDIR.

Unfortunately, this patch does not handle the case where PostgreSQL
and Python are configured with different prefixes.  Since the Python
Makefile is automatically generated and does not use DESTDIR, I believe
that this issue will be difficult to correct.  If anyone has ideas on
how to fix this issue, then I'm quite willing to rework the patch to
take the suggestion into account.

Jason Tishler
src/interfaces/python/GNUmakefile