summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-01-01 17:49:17 +0000
committerjbj <devnull@localhost>2004-01-01 17:49:17 +0000
commit7989c8c4f5a76abe88ed633922ac40cadab674ab (patch)
tree0dcc8fb7b1c353dadf6ac24371da3b1e3db4ea4d
parentf5d50a5c675f29af595f0d86c81948bc0774ea70 (diff)
downloadrpm-7989c8c4f5a76abe88ed633922ac40cadab674ab.tar.gz
rpm-7989c8c4f5a76abe88ed633922ac40cadab674ab.tar.bz2
rpm-7989c8c4f5a76abe88ed633922ac40cadab674ab.zip
- python: avoid invoking python to acquire ill-specified parameters.
CVS patchset: 7060 CVS date: 2004/01/01 17:49:17
-rw-r--r--CHANGES1
-rw-r--r--python/Makefile.am7
-rw-r--r--python/mpw/test/Makefile.am3
-rw-r--r--python/rpmdb/test/Makefile.am4
4 files changed, 3 insertions, 12 deletions
diff --git a/CHANGES b/CHANGES
index 5b62e8521..9e103dbf5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -37,6 +37,7 @@
- popt: pad to display length, not strlen, for i18n popt args (#106240).
- python: include Python.h before glibc features.h.
- python: return [], not None, accessing header tags (#112794).
+ - python: avoid invoking python to acquire ill-specified parameters.
4.2 -> 4.2.1:
- fix: nested %if handling, optind initialization posix vs. glibc.
diff --git a/python/Makefile.am b/python/Makefile.am
index 300a6a07c..75ef6d0eb 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -4,11 +4,8 @@ AUTOMAKE_OPTIONS = 1.4 foreign
LINT = splint
-PYVER= @WITH_PYTHON_VERSION@
-
-# XXX grrr, sys.path[1] wrong value in python-2.3.2
-pylibdir = $(shell python -c 'import sys; print sys.path[2]')
-pyincdir = $(prefix)/include/python${PYVER}
+pylibdir = ${prefix}/lib@MARK64@/python@WITH_PYTHON_VERSION@
+pyincdir = $(prefix)/include/python@WITH_PYTHON_VERSION@
SUBDIRS = rpmdb
diff --git a/python/mpw/test/Makefile.am b/python/mpw/test/Makefile.am
index a6cbc75e8..75943417f 100644
--- a/python/mpw/test/Makefile.am
+++ b/python/mpw/test/Makefile.am
@@ -2,9 +2,6 @@
AUTOMAKE_OPTIONS = 1.4 foreign
-PYVER= @WITH_PYTHON_VERSION@
-
-pylibdir = $(shell python -c 'import sys; print sys.path[1]')
VALGRIND = # valgrind --verbose --leak-check=yes
EXTRA_DIST = \
diff --git a/python/rpmdb/test/Makefile.am b/python/rpmdb/test/Makefile.am
index 667ad87c8..705cec611 100644
--- a/python/rpmdb/test/Makefile.am
+++ b/python/rpmdb/test/Makefile.am
@@ -2,10 +2,6 @@
AUTOMAKE_OPTIONS = 1.4 foreign
-PYVER= @WITH_PYTHON_VERSION@
-
-pylibdir = $(shell python -c 'import sys; print sys.path[1]')
-
EXTRA_DIST = \
test_all.py test_associate.py test_basics.py test_compat.py \
test_dbobj.py test_dbshelve.py test_dbtables.py test_get_none.py \