From: Peter Eisentraut Date: Wed, 9 Nov 2011 19:43:04 +0000 (+0200) Subject: Only install the extension files for the current Python major version X-Git-Tag: REL9_2_BETA1~845 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f2efcd557bb3309e70751daf1fb7c74bbaa4061;p=postgresql Only install the extension files for the current Python major version --- diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 56e06d74f1..df07fc2ced 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -40,9 +40,10 @@ NAME = plpython$(python_majorversion) OBJS = plpython.o -DATA = plpythonu.control plpythonu--1.0.sql plpythonu--unpackaged--1.0.sql \ - plpython2u.control plpython2u--1.0.sql plpython2u--unpackaged--1.0.sql \ - plpython3u.control plpython3u--1.0.sql plpython3u--unpackaged--1.0.sql +DATA = $(NAME)u.control $(NAME)u--1.0.sql $(NAME)u--unpackaged--1.0.sql +ifeq ($(python_majorversion),2) +DATA += plpythonu.control plpythonu--1.0.sql plpythonu--unpackaged--1.0.sql +endif # Python on win32 ships with import libraries only for Microsoft Visual C++,