File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ # HOW TO BUILD THIS PROJECT
2+
3+ ## ** Caution**
4+
5+ * This document is ** NOT** for end-users.
6+ * Only developers those who want to rebuild the entire project should read this document.
7+
8+ ## Java-side
9+
10+ * Modify ` KOMORANEntryPoint.java ` file in the ` java/src ` directory.
11+ * This file will bridge between JVM and Python.
12+ * If you have any method want to call in Python, define it here.
13+ * Create a Jar file using ` gradle ` in the ` java/ ` directory.
14+ * Build with ` java/gradlew jar ` command, and then Jar file will be created as ` KOMORANEntryPoint-[VERSION].jar ` in the ` java/build/libs/ ` directory.
15+ * Above ` [VERSION] ` postfix follows the version in ` java/build.gradle ` file.
16+ * Copy the generated Jar file for use in Python.
17+ * You should copy the file in ` python/PyKomoran/libs ` .
18+ * Now everything you can do in Java-side is over.
19+
20+ ## Python-side
21+
22+ * Modify the ` *.py ` file in the ` python/PyKomoran ` directory.
23+ * The ` jvm ` module creates a ` jvm_gateway ` for ` Py4J ` and returns a JVM Object.
24+ * The ` type ` module contains the datatypes used by PyKomoran.
25+ * The ` core ` module has a ` Komoran ` class wrapped in ` KOMORAN(Java) ` .
26+ * Build the project using ` setup.py ` that exists in the project root.
27+ * Create an installation file using ` python setup.py sdist ` and/or ` python setup.py bdist_wheel ` .
28+ * Everything is over. Now you can release the installation binary.
You can’t perform that action at this time.
0 commit comments