Search the web
Sign In
New User? Sign Up
kicad-devel · Kicad Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Python support   Message List  
Reply | Forward Message #485 of 3694 |
I looked into the existing python support today. It did not seem
complete, and unless I don't understand something, it was less than
15% complete.



So I ask:

1) whether we want to support Python?


2) if yes, should we consider using SWIG instead of Boost.Python?



I think SWIG might be better for this project, because:


A) wxPython is based on swig, and wxPython is part of the kicad to
python solution. If SWIG is good enough for wxPyton, it would be good
enough for KICAD-python.


B) Boost.Python may be a bigger tool, but the build environment is
overkill and probably harder to get working on both Windows and Linux.


C) If we use, SWIG, we can get bindings to other languages besides
Python, such as Java.


D) The resultant SWIG binaries are easier to distribute if SWIG is
used: they are smaller and there is distutil to install them into a
python environment.

Scope of Work
-------------

For the python support to be complete, we need to develop a bridge
into the C++ classes BOARD, MODULE, and 12 or so other classes. After
that, a person could use python to write import and export scripts,
BOM scripts, and font size change scripts, and complete UI extensions.

I am in favor of it, and could get it done, but I don't have the time
to do it now, (if I were only retired, or funded...).

Is the original developer of the python interface still around and
interested and capable?







Sun Aug 12, 2007 4:27 am

dickelbeck
Offline Offline
Send Email Send Email

Forward
Message #485 of 3694 |
Expand Messages Author Sort by Date

I looked into the existing python support today. It did not seem complete, and unless I don't understand something, it was less than 15% complete. So I ask: ...
Dick H.
dickelbeck
Offline Send Email
Aug 12, 2007
4:28 am

I really want scripting support! It can be Python or any other scrip language, probably not that important to the user what script language KiCAD uses. The...
Magnus Beischer
m_beischer
Offline Send Email
Aug 12, 2007
9:05 am

_._,___ ... Well, I didn't have time to submit it to svn sorry :) ... Yes, I am on it ... Yes, but that's not a concern ... Not true boost.python is...
DELIZY Florian
florian.delizy@...
Send Email
Aug 12, 2007
10:37 am

This decision is an important one. Given the fact that the only two people that have looked into the matter are not in harmonious agreement, I would advise...
Dick H.
dickelbeck
Offline Send Email
Aug 12, 2007
4:39 pm

... It's a bit too late it *is* already in the code ... ... About a day or two reading all their doc, looking for what I needed, asking people but it still...
DELIZY Florian
florian.delizy@...
Send Email
Aug 12, 2007
5:23 pm

If we do the Python binding well, then the features that it adds are so compelling that I think the Python support gets to where it is no longer optional. If...
Dick H.
dickelbeck
Offline Send Email
Aug 12, 2007
5:59 pm

I agree. I've used SWIG in a large C++ program with embedded python, and it was mostly not worth the effort; we had to keep around some perl scripts to make...
Tim Hanson
lifekidyeaa
Offline Send Email
Aug 12, 2007
11:27 pm

Thanks Tim. Lua does sound interesting. But I have some reservations about it. Before I forget, here is something of interest: ...
Dick Hollenbeck
dickelbeck
Offline Send Email
Aug 13, 2007
1:10 am

... well, it's not that big (you don't have to embeed the whole boost to get boost.python only) ... Lua is good, but it lacks the object model, and that's much...
Florian Delizy
goutnet
Offline Send Email
Aug 13, 2007
11:55 am

http://pysvn.tigris.org/ The above project is an example of what we are talking about, something like this architectural stack: Python + wxPython -> PyCXX ->...
Dick H.
dickelbeck
Offline Send Email
Aug 13, 2007
2:46 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help