From fc8007f765f81ca864fb8de72abc5a7b49357ec2 Mon Sep 17 00:00:00 2001 From: Cedric Gustin Date: Wed, 28 Jun 2006 09:01:19 +0000 Subject: Set datarootdir in .pc file. 2006-06-28 Cedric Gustin * dsextras.py (InstallData): Set datarootdir in .pc file. * pygobject_postinstall.py (replace_prefix): Do not parse pygtk-codegen-2.0 as it is part of pygtk. * setup.py: Create gobject extension as gobject._gobject. Add pygoptioncontext.c and pygoptiongroup.c to the list of source files. Add option.py to the module files. Changed name of distutils package from pygtk to pygobject. --- pygobject_postinstall.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pygobject_postinstall.py') diff --git a/pygobject_postinstall.py b/pygobject_postinstall.py index b6e9d7a..0175d00 100644 --- a/pygobject_postinstall.py +++ b/pygobject_postinstall.py @@ -6,20 +6,16 @@ Local configuration files were successfully updated.""" import os, re, sys prefix_pattern=re.compile("^prefix=.*") -exec_pattern=re.compile("^exec\s.*") def replace_prefix(s): if prefix_pattern.match(s): s='prefix='+sys.prefix.replace("\\","\\\\")+'\n' - if exec_pattern.match(s): - s=('exec '+sys.prefix+'\\python.exe '+ - '$codegendir/codegen.py \"$@\"\n').replace("\\","\\\\") return s if len(sys.argv) == 2 and sys.argv[1] == "-install": - filenames=['lib/pkgconfig/pygtk-2.0.pc','bin/pygtk-codegen-2.0'] + filenames=['lib/pkgconfig/pygobject-2.0.pc'] for filename in filenames: pkgconfig_file = os.path.normpath( os.path.join(sys.prefix,filename)) -- cgit