diff options
Diffstat (limited to 'pygobject_postinstall.py')
-rw-r--r-- | pygobject_postinstall.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pygobject_postinstall.py b/pygobject_postinstall.py index b6e9d7ab..0175d00f 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))
|