Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update installation.rst: Instructions for Windows #224

Merged
merged 1 commit into from
Mar 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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``