summaryrefslogtreecommitdiffstats
path: root/pygobject_postinstall.py
diff options
context:
space:
mode:
authorCedric Gustin <cedric.gustin@gmail.com>2006-06-28 09:01:19 +0000
committerCedric Gustin <gustin@src.gnome.org>2006-06-28 09:01:19 +0000
commitfc8007f765f81ca864fb8de72abc5a7b49357ec2 (patch)
treed6eaf64566eeb29068ba1e0f075785091cc9d070 /pygobject_postinstall.py
parentbbe3b88b3a15a15b5d015d9ef1911b1181032141 (diff)
downloadpygobject-fc8007f765f81ca864fb8de72abc5a7b49357ec2.tar.gz
pygobject-fc8007f765f81ca864fb8de72abc5a7b49357ec2.tar.xz
pygobject-fc8007f765f81ca864fb8de72abc5a7b49357ec2.zip
Set datarootdir in .pc file.
2006-06-28 Cedric Gustin <cedric.gustin@gmail.com> * 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.
Diffstat (limited to 'pygobject_postinstall.py')
-rw-r--r--pygobject_postinstall.py6
1 files changed, 1 insertions, 5 deletions
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))