[pygoocanvas] setup.py: install into site-packages/gtk-2.0 instead of site-packages to prevent future incompatibil



commit 3285fb8ea221a6f6a1cf85d953e4724e45f2f166
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Tue Nov 2 14:31:03 2010 +0100

    setup.py: install into site-packages/gtk-2.0 instead of site-packages to prevent future incompatibilities with a parallel installed (gobject introspection enabled) pygobject-3.0

 setup.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/setup.py b/setup.py
index 46d888d..e6e1781 100644
--- a/setup.py
+++ b/setup.py
@@ -81,6 +81,15 @@ py_modules = []
 packages = []
 
 
+class PyGooCanvasInstallLib(InstallLib):
+    def run(self):
+        # Modify the base installation dir
+        install_dir = os.path.join(self.install_dir, PYGTK_SUFFIX_LONG)
+        self.set_install_dir(install_dir)
+
+        InstallLib.run(self)
+
+
 class PyGooCanvasInstallData(InstallData):
     def run(self):
         self.add_template_option('VERSION', VERSION)
@@ -165,6 +174,7 @@ setup(name='pygoocanvas',
       data_files=data_files,
       scripts = ['pygoocanvas_postinstall.py'],
       options=options,
-      cmdclass={'install_data': PyGooCanvasInstallData,
+      cmdclass={'install_lib': PyGooCanvasInstallLib,
+                'install_data': PyGooCanvasInstallData,
                 'build_ext': BuildExt,
                 'build': PyGooCanvasBuild})



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]