From a8eff5a9612d80957c10197168dbd3f6f3926934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 16 Jun 2005 20:36:51 +0000 Subject: [PATCH] =?UTF-8?q?Ne=20kadar=20aptal=C4=B1m...=20Yeni=20bir=20con?= =?UTF-8?q?text=20yaratmadan=20Constants.c=20eri=C5=9Filebilir=20oluyor.?= =?UTF-8?q?=20Dolay=C4=B1s=C4=B1=20ile=20actions=20api=20i=C3=A7erisinde?= =?UTF-8?q?=20PISI'nin=20constant=20de=C4=9Ferlerine=20eri=C5=9Fmek=20i?= =?UTF-8?q?=C3=A7in;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from pisi.context import Constants const = Constants.c const.some_constant_variable yeterli. Önemli olan actions.py içerisindeki paket fonksiyonlarının basit tutulması dolayısı ile bu istediğimizi karşılıyor. --- src/pisi/actionsapi/autotools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pisi/actionsapi/autotools.py b/src/pisi/actionsapi/autotools.py index 4214579d..45ab5cc5 100644 --- a/src/pisi/actionsapi/autotools.py +++ b/src/pisi/actionsapi/autotools.py @@ -2,6 +2,8 @@ # -*- coding: utf-8 -*- import os +from pisi.context import Constants +const = Constants.c def configure(parameters = None): ''' FIXME: Düzgün hale getirilecek ''' @@ -24,6 +26,7 @@ def make(): def install(): ''' FIXME: Düzgün hale getirilecek ''' ''' {D} = /var/tmp/pisi/ _paket_adı_ /image/ ''' + global const install_string = 'make prefix={D}/usr \ datadir={D}/usr/share \ @@ -34,4 +37,4 @@ def install(): install' # FIXME: need to get install directory from pisi.config... - os.system(install_string.replace('{D}',os.path.dirname(os.path.dirname(os.getcwd())) + '/install')) + os.system(install_string.replace('{D}',os.path.dirname(os.path.dirname(os.getcwd())) + const.build_install_dir_suffix))