summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a70c081)
raw | patch | inline | side by side (parent: a70c081)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 15 May 2007 08:36:52 +0000 (08:36 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 15 May 2007 08:36:52 +0000 (08:36 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1059 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/Makefile.am | patch | blob | history | |
bindings/python/setup.py | patch | blob | history |
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index 66e84796409d208275868d13194eeb108ab9bc53..c0ad1d6a8576546fa1b3c8da60959558f48c52e2 100644 (file)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true
test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true
- test -d python/build && cd python && env BUILDLIBDIR=../../src/.libs RUNTIMELIBDIR=$(exec_prefix)/lib $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true
+ test -d python/build && cd python && env BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true
# rules for buildung the ruby module
# RUBYARCHDIR= is to work around in a makefile quirk not sure
# rules for buildung the pyton module
python:
- cd python && env BUILDLIBDIR=../../src/.libs RUNTIMELIBDIR=$(exec_prefix)/lib $(PYTHON) setup.py build
+ cd python && env BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py build_ext --rpath=$(exec_prefix)/lib && env LIBDIR=../../src/.libs $(PYTHON) setup.py build
# rules for building the perl module
perl_piped: perl-piped/Makefile
index 3fc46ab50e21936450747b06b4f463e9de70bac1..7a41a113c9b9c809b2a8d029226330acc7bcb73b 100644 (file)
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
import sys, os
RRDBASE = os.environ.get('LOCALBASE', '../../src')
-runtime_library_dir = os.environ.get('RUNTIMELIBDIR')
library_dir = os.environ.get('BUILDLIBDIR', os.path.join(RRDBASE, 'lib'))
include_dir = os.environ.get('INCDIR', RRDBASE)
"rrdtoolmodule",
["rrdtoolmodule.c"],
libraries=['rrd'],
- runtime_library_dirs=[runtime_library_dir],
library_dirs=[library_dir],
include_dirs=[include_dir],
)