Skip to content

Commit

Permalink
Merge pull request #224 from harishankarv/patch-1
Browse files Browse the repository at this point in the history
Update installation.rst: Instructions for Windows
  • Loading branch information
dessant committed Mar 23, 2017
2 parents 8901477 + e810e34 commit 7ded3ef
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,39 @@ you just need to compile a distribution with the pyjnius module::

./distribute.sh -m 'pyjnius kivy'


Installation for Windows
------------------------

1. Download and install JDK and JRE (if not installed):
* http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Edit your system and environment variables (use your appropriate your java version):

1. Add to Environment Variables:
* ``JDK_HOME``: C:\\Program Files\\Java\\jdk1.7.0_79\\
* ``PATH``: C:\\Program Files\\Java\\jdk1.7.0_79\\jre\\bin\\server\\
2. Add to System Variables:
* ``PATH``: C:\\Program Files\Java\jdk1.7.0_79\bin\`

3. Install pip (if not installed):
- https://pip.pypa.io/en/latest/installing/

4. Download and install Cython (if not installed):
1. Install wheel:
* ``pip install wheel``
2. Install Cython:
1. Download Cython for Windows:
* http://www.lfd.uci.edu/~gohlke/pythonlibs/#cython
2. Install Cython (use your appropriate filename):
* ``pip install Cython-0.24-cp35-cp35m-win_amd64.whl``

5. Download and install Microsoft Visual C++ Compiler for Python 2.7:
1. http://aka.ms/vcpython27
Python modules can be part written in C (typically for speed). If you try to install such a package with ``pip`` (or ``setup.py``), it has to compile that C/C++ from source. `[Reference] <http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/26127562#26127562>`_
2. Install ``setuptools`` for the compiler to work:
* https://pypi.python.org/pypi/setuptools#windows-simplified

6. Download and install the pyjnius source:
- https://github.com/kivy/pyjnius
- ``python setup.py install``

0 comments on commit 7ded3ef

Please sign in to comment.