2011-02-01 10:24:24 +00:00
|
|
|
Installation on Windows
|
|
|
|
=======================
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
For Windows, we provide what we call a 'portable package'. You don't have
|
|
|
|
to install anything "system" wide. Just unzip & run:
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
#. Download the latest version from http://kivy.org/#downloads
|
|
|
|
#. Unzip the package
|
|
|
|
#. Then, in the unzipped package, you have a script called `kivy.bat`,
|
|
|
|
use it for launching any kivy application as described below
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
|
2011-02-03 15:02:23 +00:00
|
|
|
.. _windows-run-app:
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
Start a Kivy Application
|
|
|
|
------------------------
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-05-02 18:30:55 +00:00
|
|
|
Send-to method
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
You can launch a .py file with our Python using the Send-to menu:
|
|
|
|
|
|
|
|
#. Create a shortcut of the kivy.bat
|
|
|
|
#. Open the explorer, and to go the address 'shell:sendto'
|
|
|
|
#. Move the kivy.bat's shortcut to this directory
|
|
|
|
#. (optional) rename it to Kivy <kivy-version>
|
|
|
|
|
|
|
|
Then, you can execute application by doing:
|
|
|
|
|
|
|
|
#. Right click on the .py file
|
|
|
|
#. Select Send-to > Kivy <version>
|
|
|
|
|
|
|
|
Double-click method
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
There are some simple steps that you need to do once in order to be able
|
|
|
|
to launch any kivy application by just double-clicking it:
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
#. Right click on the main python file (.py ending) of the application you want to launch
|
|
|
|
#. From the context menu that appears, select *Open With*
|
|
|
|
#. Browse your hard disk drive and find the file ``kivy.bat`` from the portable package. Select it.
|
|
|
|
#. Select "Always open the file with..." if you don't want to repeat this procedure every time you double click a .py file.
|
|
|
|
#. You are done. Open the file.
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
The next time you double click a .py file, it will be executed with the version
|
|
|
|
of python that Kivy ships with.
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
.. note::
|
|
|
|
On Windows we have to ship our own version of Python since it's not
|
|
|
|
installed by default on Windows (unlike Mac OS X and Linux). By
|
|
|
|
following the steps above, you will set Kivy's version of Python as the
|
|
|
|
default for opening .py files for your user.
|
|
|
|
Normally this should not be harmful as it's just a normal version of
|
|
|
|
Python with the :ref:`necessary third party libraries <winpackagecontents>`
|
|
|
|
added to the module search path.
|
|
|
|
If you do encounter unexpected problems, please :ref:`contact`.
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
Start from Command-Line
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
If you just want to use or develop with the latest stable kivy version, we offer
|
|
|
|
an alternative way with a console. You need a minimalist GNU system installed on
|
2011-02-01 10:24:24 +00:00
|
|
|
your system. Use `msysGit <http://code.google.com/p/msysgit/>`_.
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
When you install msysGit, you must select theses options:
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
* Don't replace windows shell
|
2011-03-16 19:18:07 +00:00
|
|
|
* Checkout as-is, commit as-is (no CLRF replacement!)
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
You'll have an icon "Git bash" on your desktop, this is the console we want:
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
#. Start "Git bash"
|
|
|
|
#. ``cd <directory of portable kivy>``
|
|
|
|
#. ``source kivyenv.sh <full directory path of portable kivy>`` # (don't use .)
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
You are now ready to launch python/kivy from the command-line! Just do::
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
python <filename.py>
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
Also, all other scripts and binaries are available, such as:
|
2011-02-01 10:24:24 +00:00
|
|
|
|
|
|
|
* cython
|
|
|
|
* gcc / make...
|
|
|
|
* easy_install
|
|
|
|
* gst-inspect-0.10
|
|
|
|
|
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
.. _winpackagecontents:
|
|
|
|
|
|
|
|
Package Contents
|
|
|
|
----------------
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
The latest Windows package contains:
|
2011-02-01 10:24:24 +00:00
|
|
|
|
2011-03-16 19:18:07 +00:00
|
|
|
* Latest stable kivy version
|
2011-02-01 10:24:24 +00:00
|
|
|
* Python 2.7.1
|
|
|
|
* Glew 1.5.7
|
|
|
|
* Pygame 1.9.2
|
|
|
|
* Cython 0.14
|
|
|
|
* MingW
|
|
|
|
* Gstreamer
|
|
|
|
* Setuptools
|
|
|
|
|