[maemo-commits] [maemo-commits] r8825 - projects/haf/trunk/python-hildon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Dec 19 22:21:06 EET 2006
- Previous message: [maemo-commits] r8824 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . src
- Next message: [maemo-commits] r8826 - in projects/haf/trunk/python-hildon: . defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: luciano Date: 2006-12-19 22:21:03 +0200 (Tue, 19 Dec 2006) New Revision: 8825 Modified: projects/haf/trunk/python-hildon/setup.py Log: Small fix, using subprocess instead popen3 due problems with fakeroot Modified: projects/haf/trunk/python-hildon/setup.py =================================================================== --- projects/haf/trunk/python-hildon/setup.py 2006-12-19 15:37:31 UTC (rev 8824) +++ projects/haf/trunk/python-hildon/setup.py 2006-12-19 20:21:03 UTC (rev 8825) @@ -1,5 +1,6 @@ from distutils.core import setup, Extension from distutils.command.build import build +import subprocess import os import sys @@ -8,7 +9,13 @@ includedir = '/usr/include' def get_hildon_version(): - cmdinput, cmdresult, error = os.popen3("pkg-config --modversion hildon-libs") + proc = subprocess.Popen( + ["/usr/bin/pkg-config","--modversion","hildon-libs"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + cmdresult = proc.stdout + error = proc.stderr print >>sys.stderr, error.read() raw_version = cmdresult.read().strip() hildon_version = tuple([ int(x) for x in raw_version.split('.') ])
- Previous message: [maemo-commits] r8824 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . src
- Next message: [maemo-commits] r8826 - in projects/haf/trunk/python-hildon: . defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]