[PyKDE] Where To Put API Files?

Hans-Peter Jansen hpj at urpla.net
Sat Jun 4 20:09:26 BST 2005

Am Samstag, 4. Juni 2005 20:41 schrieb Detlev Offenbach:
> Am Samstag, 4. Juni 2005 19:46 schrieb Rich Shepard:
> >    I downloaded both gen_python_api.py and gen_sip_api.py. Where do
> > I put them so eric3 finds them?
> Wherever you like. Once installed, configure their usage in the
> configuration dialog.

Detlev, sounds more like Rich is asking, how to use them..

Here's what I do in my eric.spec:

mkdir -p $RPM_BUILD_ROOT%{python_site}/eric3/api
python $RPM_BUILD_ROOT%{python_site}/eric3/tools/gen_python_api.py $RPM_BUILD_ROOT%{python_site}/eric3/api
python $RPM_BUILD_ROOT%{python_site}/eric3/tools/gen_sip_api.py --pyqt $RPM_BUILD_ROOT%{python_site}/eric3/api
python $RPM_BUILD_ROOT%{python_site}/eric3/tools/gen_sip_api.py --pyqwt $RPM_BUILD_ROOT%{python_site}/eric3/api
python $RPM_BUILD_ROOT%{python_site}/eric3/tools/gen_sip_api.py --pykde $RPM_BUILD_ROOT%{python_site}/eric3/api

BTW Detlev, you may consider applying this (and sorry for being 
that silent patch wise: I'm busy as hell in completely different 
areas: setting up SuSE 9.3 diskless on top of unionfs)

--- gen_python_api.py~  2004-05-05 18:19:35.000000000 +0200
+++ gen_python_api.py   2004-05-14 21:43:56.700225643 +0200
@@ -35,7 +35,8 @@
                   'win32', 'pythonwin', 'plat-win', 'plat-linux2',
                   'test', 'OpenGL', 'gnome', 'pyglade',
                   'happydoc', 'pygame', 'mx', 'eric', 'eric3', 'pychecker',
-                  'epydoc', 'wxPython', 'wx', 'idlelib', 'kodos']
+                  'epydoc', 'wxPython', 'wx', 'idlelib', 'kodos',
+                  'samba']
 # list of modules which should be excluded
 excludemodulelist = ['win32traceutil', 'win32pdh', 'perfmondata', 

@Rich: this is, what you typically need to do, if gen_python_api.py 
bails out for unexpected reasons..


More information about the PyQt mailing list