forked from rplevy/clojure-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
33 lines (22 loc) · 1.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# clojure-python
by Robert P. Levy
Python libraries can be used in clojure by instantiating
a jython interpreter via clojure's excellent java interop
library functions. However, the way in which python code
is wrapped by jython makes interop with python clumsy and
verbose. This library aims to make jython interop in
clojure nearly as seamless as basic java interop.
e
## Usage and Installation
To experiment with it:
1. clone the repository
2. mvn install:install-file -DgroupId=org.python -DartifactId=jython -Dversion=2.5.1 -Dpackaging=jar -Dfile=./etc/jython-2.5.1.jar
(Because the Maven artifact for Jython 2.5.1 has not yet been added to the central Maven repository, for now it is necessary to install it locally with mvn before running lein deps.)
3. lein deps
4. lein repl
To include as a dependency:
Copy the config section found at http://clojars.org/clojure-python into your dependencies in your project's project.clj.
Important: it will be necessary to include step #2 above (mvn install...) and the 2.5.1 jar itself in any installation instructions for using this as a dependency, until a recent version of Jython is made available in the central maven repository.
## License
Copyright (C) 2010 Robert P. Levy
Distributed under LGPL.