Re: [tuxdroid-user] Portable makefiles and python path
Status: Beta
Brought to you by:
ks156
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 |