python installation patch.

Started by Anandabout 25 years ago3 messagespatches
Jump to latest
#1Anand
anand@blandings.com

Hi, I came across a problem while building postgresql 7.1.2 for my
environment where the default python in my path is not the python to be
used to deduce the installation directory. While the GNUmakefile works
correctly, the generated makefile seemed to have problems. I found that
this patch helps to fix the problem. The patch below is against the latest
version in cvs.

Thanks
Anand
--
Anand Ranganathan anand@blandings.com

----------------------------------------------------------------------
--- src/interfaces/python/GNUmakefile.orig    Wed Jun 27 12:53:48 2001
+++ src/interfaces/python/GNUmakefile Wed Jun 27 12:55:06 2001
@@ -20,7 +20,7 @@
        $(MAKE) -C $(libpq_builddir) all
 Makefile: Setup.in Makefile.pre.in
-       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir)
+       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir) PYTHON=$(PYTHON)

Makefile.pre.in: $(python_makefile_pre_in)
cp $< $@

#2Bruce Momjian
bruce@momjian.us
In reply to: Anand (#1)
Re: python installation patch.

Seems we have a redesigned Python build environment in CVS. Can someone
comment on adding the PYTHON pass to this?

Hi, I came across a problem while building postgresql 7.1.2 for my
environment where the default python in my path is not the python to be
used to deduce the installation directory. While the GNUmakefile works
correctly, the generated makefile seemed to have problems. I found that
this patch helps to fix the problem. The patch below is against the latest
version in cvs.

Thanks
Anand
--
Anand Ranganathan anand@blandings.com

----------------------------------------------------------------------
--- src/interfaces/python/GNUmakefile.orig    Wed Jun 27 12:53:48 2001
+++ src/interfaces/python/GNUmakefile Wed Jun 27 12:55:06 2001
@@ -20,7 +20,7 @@
$(MAKE) -C $(libpq_builddir) all
Makefile: Setup.in Makefile.pre.in
-       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir)
+       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir) PYTHON=$(PYTHON)

Makefile.pre.in: $(python_makefile_pre_in)
cp $< $@

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Bruce Momjian
bruce@momjian.us
In reply to: Anand (#1)
Re: python installation patch.

We have overhauled the python build code. You can try CVS copy or wait
for 7.2.

Hi, I came across a problem while building postgresql 7.1.2 for my
environment where the default python in my path is not the python to be
used to deduce the installation directory. While the GNUmakefile works
correctly, the generated makefile seemed to have problems. I found that
this patch helps to fix the problem. The patch below is against the latest
version in cvs.

Thanks
Anand
--
Anand Ranganathan anand@blandings.com

----------------------------------------------------------------------
--- src/interfaces/python/GNUmakefile.orig    Wed Jun 27 12:53:48 2001
+++ src/interfaces/python/GNUmakefile Wed Jun 27 12:55:06 2001
@@ -20,7 +20,7 @@
$(MAKE) -C $(libpq_builddir) all
Makefile: Setup.in Makefile.pre.in
-       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir)
+       $(MAKE) -f Makefile.pre.in boot srcdir=$(srcdir) VPATH=$(srcdir) PYTHON=$(PYTHON)

Makefile.pre.in: $(python_makefile_pre_in)
cp $< $@

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026