Skip to content

Commit

Permalink
About to release v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Sep 7, 2015
1 parent 90d2720 commit c42c264
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 21 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ jpy Changelog
*************


Version 0.8 (SNAPSHOT)
======================
Version 0.8
===========

* Fixed problem where a Python interpreter crash occurred when executing del statement on Java arrays (issue #52)
* Fixed problem where loading of jpy DLL fails for user-specific Python installations on Windows (issue #58)
Expand Down
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

jpy Python-Java bridge
######################
======================

jpy is a **bi-directional** Python-Java bridge which you can use to embed Java code in Python programs or the other
way round. It has been designed particularly with regard to maximum data transfer speed between the two languages.
Expand All @@ -19,7 +19,8 @@ jpy has been tested with Python 2.7, 3.3, 3.4 and Oracle Java 7 and 8 JDKs.

The initial development of jpy has been driven by the need to write Python extensions to an established scientific
imaging application programmed in Java, namely the [BEAM](http://www.brockmann-consult.de/beam/) toolbox
funded by the European Space Agency (ESA).
funded by the European Space Agency (ESA) and is now continued through
[SNAP](http://step.esa.int/main/toolboxes/snap/), SeNtinel Application Platform project.
Writing such Python plug-ins for a Java application usually requires a bi-directional communication between Python and
Java since the Python extension code must be able to call back into the Java APIs.

Expand All @@ -28,3 +29,36 @@ For more information please have a look into jpy's
* [documentation](http://jpy.readthedocs.org/en/latest/)
* [source repository](https://github.com/bcdev/jpy)
* [issue tracker](https://github.com/bcdev/jpy/issues?state=open)


How to build on Linux and Mac
-----------------------------

Install a JDK 8, preferrably the Oracle distribution. Set JDK_HOME or JPY_JDK_HOME to point to your JDK installation
and run the build script:

> export JDK_HOME=<your-jdk-dir>
> python setup.py --maven build

On success, the output is found in the `build` directory.

How to build on Windows
-----------------------

If you are on Windows, please note that if you run a 32-bit Python you'll also need a 32-bit JDK.
Set JDK_HOME or JPY_JDK_HOME to point to your JDK installation. You'll need Windows SDK 7.1 or Visual Studio C++ to
build the sources. With Windows SDK 7.1

> SET VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
> SET DISTUTILS_USE_SDK=1
> C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\setenv /x64 /release
> SET JDK_HOME=<your-jdk-dir>
> python setup.py --maven build

With Visual Studio 14 and higher it is much easier:

> SET VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
> SET JDK_HOME=<your-jdk-dir>
> python setup.py --maven build

On success, the output is found in the `build` directory.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<groupId>org.jpy</groupId>
<artifactId>jpy</artifactId>
<version>0.8-SNAPSHOT</version>
<version>0.8</version>

<description>
jpy is a bi-directional Java-Python bridge which you can use to embed Java code in Python programs or the other
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ verbose = 1
force = 1

[install]
record = setup.out
record = setup.out

[metadata]
description-file = README.md
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__author__ = "Norman Fomferra, Brockmann Consult GmbH"
__copyright__ = "Copyright (C) 2015 Brockmann Consult GmbH"
__license__ = "GPL v3"
__version__ = "0.8-SNAPSHOT"
__version__ = "0.8"

import sys
import os
Expand Down
28 changes: 14 additions & 14 deletions winbuild.cmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
:: Windows SDK 7.1 settings
#SET SDK_SETENV=C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\setenv
#SET VS90COMNTOOLS=%VS100COMNTOOLS%
#SET DISTUTILS_USE_SDK=1
SET SDK_SETENV=C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\setenv
SET VS90COMNTOOLS=%VS100COMNTOOLS%
SET DISTUTILS_USE_SDK=1

# VS 14 settings (with Windows 10)
SET SDK_SETENV=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
SET VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
:: VS 14 settings (with Windows 10)
::SET SDK_SETENV=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
::SET VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\


SET JDK32_HOME=C:\Program Files (x86)\Java\jdk1.7.0_45
SET JDK64_HOME=C:\Program Files\Java\jdk1.8.0_45
SET JDK32_HOME=C:\Program Files (x86)\Java\jdk1.8.0_60
SET JDK64_HOME=C:\Program Files\Java\jdk1.8.0_60

SET PY27_64=C:\Python27
SET PY33_64=C:\Python33
SET PY34_64=C:\Python34
SET PY27_32=C:\Python27-x86
SET PY33_32=C:\Python33-x86
SET PY34_32=C:\Python34-x86
SET PY27_64=C:\Python27-amd64
SET PY33_64=C:\Python33-amd64
SET PY34_64=C:\Python34-amd64
SET PY27_32=C:\Python27
SET PY33_32=C:\Python33
SET PY34_32=C:\Python34



Expand Down

0 comments on commit c42c264

Please sign in to comment.