According to this post: https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg, it is possible to use Eclipse as an IDE for Kivy through PyDev. However, I didn't understand the instructions. Can anyone please elaborate on how to connect Kivy with Eclipse.
Note: I'm on a Windows machine. Also, is it possible to use PyPy instead of the Python Interpreter?
Thanks~!
Go to Window → Open Perspective → Other and choose PyDev, then click OK. If you look at the upper right corner you will see that the perspective has changed from "Java" to "PyDev".
PyDev is a plugin that enables Eclipse to be used as a Python IDE (supporting also Jython and IronPython).
In Environment tab, add the following three key-value pairs: (assumptions: kivy root is c:\kivy)
GST_REGISTRY = c:\kivy\gstreamer\registry.bin
GST_PLUGIN_PATH = c:\kivy\gstreamer\lib\gstreamer-0.10
PATH = c:\kivy;c:\kivy\Python;c:\kivy\gstreamer\bin;c:\kivy\MinGW\bin;%PATH%
When creating a new project intended to use kivy, just specify the appropriate interpreter and you should be ready to go
I think it's just pointing that:
The PATH, GST_PLUGIN_PATH, GST_REGISTRY environment variables must be set (which you can actually do on the command line and then start up eclipse from that command line, or set in the interpreter configuration in the environment tab): http://pydev.org/manual_101_interpreter.html.
Kivy must be added to the PYTHONPATH somehow. If you want, you can add it only to a project (as pointed in the post -- see: http://pydev.org/manual_101_project_conf2.html) or to the actual interpreter configuration if more projects will share that: http://pydev.org/manual_101_interpreter.html.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With