Skip to content

Commit 60e4260

Browse files
committed
revert last change
1 parent cde5fae commit 60e4260

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

src/interfaces/python/GNUmakefile

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.12 2001/12/03 12:39:44 darcy Exp $
1+
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.13 2001/12/13 18:39:04 petere Exp $
22

33
subdir = src/interfaces/python
44
top_builddir = ../../..
@@ -19,23 +19,10 @@ include $(top_srcdir)/src/Makefile.shlib
1919

2020
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(python_includespec)
2121

22-
PY_SCRIPTS = pg.py pgdb.py
23-
ifeq ($(with_python_compile), yes)
24-
PY_COMPILED_SCRIPTS = $(PY_SCRIPTS:%.py=%.pyc) $(PY_SCRIPTS:%.py=%.pyo)
25-
else
26-
PY_COMPILED_SCRIPTS =
27-
endif
28-
29-
all: all-lib $(PY_COMPILED_SCRIPTS)
22+
all: all-lib
3023

3124
all-lib: libpq-all
3225

33-
%.pyc: %.py
34-
$(PYTHON) -c "import py_compile; py_compile.compile(\"$<\")"
35-
36-
%.pyo: %.py
37-
$(PYTHON) -O -c "import py_compile; py_compile.compile(\"$<\")"
38-
3926
.PHONY: libpq-all
4027
libpq-all:
4128
$(MAKE) -C $(libpq_builddir) all
@@ -51,10 +38,11 @@ install: all installdirs
5138
echo "$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX)"; \
5239
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX); \
5340
\
54-
for i in $(PY_SCRIPTS) $(PY_COMPILED_SCRIPTS); do \
55-
echo $(INSTALL_DATA) $$i $(python_moduledir); \
56-
$(INSTALL_DATA) $$i $(python_moduledir); \
57-
done \
41+
echo "$(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py"; \
42+
$(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py; \
43+
\
44+
echo "$(INSTALL_DATA) $(srcdir)/pgdb.py $(DESTDIR)$(python_moduledir)/pgdb.py"; \
45+
$(INSTALL_DATA) $(srcdir)/pgdb.py $(DESTDIR)$(python_moduledir)/pgdb.py; \
5846
else \
5947
$(install-warning-msg); \
6048
fi

0 commit comments

Comments
 (0)