Skip to content

Commit

Permalink
clean up windows installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Mar 23, 2017
1 parent 7ded3ef commit 93e35ef
Showing 1 changed file with 25 additions and 32 deletions.
57 changes: 25 additions & 32 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,28 @@ you just need to compile a distribution with the pyjnius module::
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``
Python and pip must be installed and present in PATH.


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

2. Edit your system and environment variables (use the appropriate 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. Download and install Microsoft Visual C++ Compiler for Python 2.7:
- http://aka.ms/vcpython27

4. Update pip and setuptools:
- ``python -m pip install --upgrade pip setuptools``

5. Install Cython:
- ``python -m pip install --upgrade Cython``

6. Install Pyjnius:
- ``pip install pyjnius``

0 comments on commit 93e35ef

Please sign in to comment.