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 LIBDIR=$(libdir) $(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 RUNTIMELIBDIR=$(exec_prefix)/lib $(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 LIBDIR=../../src/.libs $(PYTHON) setup.py build
+ cd python && env BUILDLIBDIR=../../src/.libs RUNTIMELIBDIR=$(exec_prefix)/lib $(PYTHON) setup.py build
# rules for building the perl module
perl_piped: perl-piped/Makefile
import sys, os
RRDBASE = os.environ.get('LOCALBASE', '../../src')
-library_dir = os.environ.get('LIBDIR', os.path.join(RRDBASE, 'lib'))
+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)
setup(name = "py-rrdtool",
"rrdtoolmodule",
["rrdtoolmodule.c"],
libraries=['rrd'],
- runtime_library_dirs=[library_dir],
+ runtime_library_dirs=[runtime_library_dir],
library_dirs=[library_dir],
include_dirs=[include_dir],
)