[gnome-python-desktop] setup.py: install into site-packages/gtk-2.0 instead of site-packages to prevent future incompatibil
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-python-desktop] setup.py: install into site-packages/gtk-2.0 instead of site-packages to prevent future incompatibil
- Date: Thu, 25 Nov 2010 18:56:21 +0000 (UTC)
commit ed6a142ab7585917ab0d6546df838897c310009a
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Tue Nov 2 14:35:22 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 0b3cd3f..a5342bf 100644
--- a/setup.py
+++ b/setup.py
@@ -83,6 +83,15 @@ py_modules = []
packages = []
+class PyRsvgInstallLib(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 PyRsvgInstallData(InstallData):
def run(self):
self.add_template_option('VERSION', VERSION)
@@ -162,6 +171,7 @@ setup(name='pyrsvg',
data_files=data_files,
scripts = ['pyrsvg_postinstall.py'],
options=options,
- cmdclass={'install_data': PyRsvgInstallData,
+ cmdclass={'install_lib': PyRsvgInstallLib,
+ 'install_data': PyRsvgInstallData,
'build_ext': BuildExt,
'build': PyRsvgBuild})
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]