Thread: [tuxdroid-user] Portable makefiles and python path
Status: Beta
Brought to you by:
ks156
From: Kiffin G. <kif...@pl...> - 2007-03-26 17:54:32
|
Hi folks! I would like to see a more generic and portable use of the makefiles, e.g. C_INCLUDE_DIRS, LIB_DIRS, LIBS and the use of PYTHONPATH so that applications like gtdi.py can fine the api without using hardcoded values, e.g. sys.path.append('/opt/tuxdroid/api/python'). Evertime I need to rebuild the trunk I have to redit the lot which is a pain after a while. Thanks alot in advance. See my thread here: http://www.tuxisalive.com/tux-droid-forum/forumtopic1/958671085 -- Kiffin Gish <kif...@pl...> |
From: David B. <da...@ja...> - 2007-03-26 20:51:43
|
On Mon, 26 Mar 2007 18:54:29 +0200, Kiffin Gish <kif...@pl...> wrote: > Hi folks! > > I would like to see a more generic and portable use of the makefiles, > e.g. C_INCLUDE_DIRS, LIB_DIRS, LIBS and the use of PYTHONPATH so that > applications like gtdi.py can fine the api without using hardcoded > values, e.g. sys.path.append('/opt/tuxdroid/api/python'). Evertime I > need to rebuild the trunk I have to redit the lot which is a pain after > a while. Thanks alot in advance. > > See my thread here: > http://www.tuxisalive.com/tux-droid-forum/forumtopic1/958671085 > Hi Kiffin, There are plans to move to autoconf and that should solve your problems I think. Now I don't know autoconf myself so either it'll take the time for me to learn it or someone else will get it done before. In the mean time, I'll apply your changes to the Makefile, they sound good to me. For the usb_detach_kernel_driver_np, as there's no kernel driver for tux, I guess we simply don't need it. The python api should be packaged with distutils as that's the best way to do it but I have no idea when we will get that done either. As of the use of PYTHONPATH, I don't see exactly how that could be done properly. You can probably set it directly in your .bashrc file (or equivalent in BSD). Anyway thanks for the information. david |
From: Kiffin G. <kif...@pl...> - 2007-03-27 08:14:09
|
David Bourgeois wrote: > On Mon, 26 Mar 2007 18:54:29 +0200, Kiffin Gish > <kif...@pl...> wrote: > >> Hi folks! >> >> I would like to see a more generic and portable use of the makefiles, >> e.g. C_INCLUDE_DIRS, LIB_DIRS, LIBS and the use of PYTHONPATH so that >> applications like gtdi.py can fine the api without using hardcoded >> values, e.g. sys.path.append('/opt/tuxdroid/api/python'). Evertime I >> need to rebuild the trunk I have to redit the lot which is a pain after >> a while. Thanks alot in advance. >> >> See my thread here: >> http://www.tuxisalive.com/tux-droid-forum/forumtopic1/958671085 >> > > Hi Kiffin, > > There are plans to move to autoconf and that should solve your > problems I think. Now I don't know autoconf myself so either it'll > take the time for me to learn it or someone else will get it done > before. > In the mean time, I'll apply your changes to the Makefile, they sound > good to me. > > For the usb_detach_kernel_driver_np, as there's no kernel driver for > tux, I guess we simply don't need it. > > The python api should be packaged with distutils as that's the best > way to do it but I have no idea when we will get that done either. As > of the use of PYTHONPATH, I don't see exactly how that could be done > properly. You can probably set it directly in your .bashrc file (or > equivalent in BSD). The way I do it for now is to have a simple script in each directory called setpythonpath which points to the correct python-api dirctory. Not really elegant, but it works. > > Anyway thanks for the information. > david > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >------------------------------------------------------------------------ > >_______________________________________________ >tux-droid-user mailing list >tux...@li... >https://lists.sourceforge.net/lists/listinfo/tux-droid-user > > -- Kiffin Gish <kif...@pl...> The Netherlands |
From: David B. <da...@ja...> - 2007-03-26 21:27:07
|
On Mon, 26 Mar 2007 18:54:29 +0200, Kiffin Gish <kif...@pl...> = = wrote: > Hi folks! > > I would like to see a more generic and portable use of the makefiles, > e.g. C_INCLUDE_DIRS, LIB_DIRS, LIBS and the use of PYTHONPATH so that > applications like gtdi.py can fine the api without using hardcoded > values, e.g. sys.path.append('/opt/tuxdroid/api/python'). Evertime I > need to rebuild the trunk I have to redit the lot which is a pain afte= r > a while. Thanks alot in advance. > > See my thread here: > http://www.tuxisalive.com/tux-droid-forum/forumtopic1/958671085 > It seems you also added the -s option at the end of LDFLAGS =3D -pipe -s Can't find what the -pipe option means, it's not listed in the GNU linke= r = documentaion pages. Any idea? Do we need to keep it? I have a tendency t= o = remove everything I don't understand ;-) |
From: Florent T. <ft...@gm...> - 2007-03-26 22:57:14
|
http://gentoo-wiki.com/CFLAGS#-pipe :) |
From: Florent T. <ft...@gm...> - 2007-03-26 23:00:35
|
Sorry, i misread Florent |