]> git.pld-linux.org Git - packages/python-logilab-common.git/commitdiff
- logilab's common package will not provide logilab/__init__.py by
authorwrobell <wrobell@pld-linux.org>
Sat, 4 Oct 2003 15:19:17 +0000 (15:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  default...

Changed files:
    python-logilab-common.spec -> 1.6

python-logilab-common.spec

index e3a716316fa2026fef26beee6581865d84ae4a89..26158d1fc2106d2a8106802070a9a4f959598d9e 100644 (file)
@@ -36,10 +36,16 @@ python setup.py build
 rm -rf $RPM_BUILD_ROOT
 
 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
 
-# ugly hack, will be fixed in next version
+# because some logilab's software depend on this package
+# and some not, so they all provide the __init__.py and we
+# have to remove it in dependent software and create it
+# here
 touch $RPM_BUILD_ROOT%{py_sitedir}/logilab/__init__.py
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}/logilab/
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/logilab/
+
+find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.12143 seconds and 4 git commands to generate.