From 1e6799c31de7225cce2179692e93d492e39d056c Mon Sep 17 00:00:00 2001 From: Soeren Sonnenburg Date: Wed, 20 Jul 2011 09:16:09 +0200 Subject: [PATCH] install modshogun in base level directory and only underneath in shogun/* Kernel, Features, ... compatibility helpers --- src/Makefile.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile.template b/src/Makefile.template index 17cff6b30d0..f8a642d3b64 100644 --- a/src/Makefile.template +++ b/src/Makefile.template @@ -256,15 +256,15 @@ install-matlab_static: $(TEMPLATE_TARGET) install-python_modular: $(TEMPLATE_TARGET) install -d -m755 "$(DESTDIR)$(PYDIR)/shogun" - install -m644 $(SWIGPYFILES) "$(DESTDIR)$(PYDIR)/shogun" - install -m755 $(SWIGLIBFILES) "$(DESTDIR)$(PYDIR)/shogun" + install -m644 $(SWIGPYFILES) "$(DESTDIR)$(PYDIR)" + install -m755 $(SWIGLIBFILES) "$(DESTDIR)$(PYDIR)" echo '__all__= [' > "$(DESTDIR)$(PYDIR)/shogun/__init__.py" for i in Kernel Distance Features Classifier Regression \ Features Clustering Evaluation IO Library Mathematics \ ModelSelection Preprocessor Structure Distribution;\ do \ install -d -m755 "$(DESTDIR)$(PYDIR)/shogun/$$i" ;\ - echo "from shogun.modshogun import *" > "$(DESTDIR)$(PYDIR)/shogun/$$i/__init__.py" ;\ + echo "from modshogun import *" > "$(DESTDIR)$(PYDIR)/shogun/$$i/__init__.py" ;\ echo "\"$$i\"," >> "$(DESTDIR)$(PYDIR)/shogun/__init__.py" ;\ done echo ']' >> "$(DESTDIR)$(PYDIR)/shogun/__init__.py"