Kivy, Eclipse and PyDev (also PyPy)

GaiusSensei picture GaiusSensei · Mar 19, 2012 · Viewed 19.8k times · Source

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~!

Answer

Rabih Kodeih picture Rabih Kodeih · Apr 30, 2012

Using Kivy with Pydev on Windows xp/7

  • Under Window/Preferences/PyDev/Interpreter-Python add a new interpreter pointing to the python executable which ships with kivy portable
  • add kivy package folder under libraries tab (still in Python Interpreters Prefs section making sure the kivy python interpreter is selected)
  • 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