From 6f2efcd557bb3309e70751daf1fb7c74bbaa4061 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 9 Nov 2011 21:43:04 +0200 Subject: [PATCH] Only install the extension files for the current Python major version --- src/pl/plpython/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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++, -- 2.40.0