support and instructions for building Python plugin from command line

This commit is contained in:
Dmitry Jemerov
2013-10-21 18:06:39 +02:00
parent 0ba98604c0
commit b397fd55be
3 changed files with 19 additions and 3 deletions
+11
View File
@@ -14,3 +14,14 @@ To run the test suite, use the built-in JUnit test runner and run all tests in t
To build the distribution archive of PyCharm Community Edition, execute build.xml Ant build script in this directory. The results of the
build execution can be found at out/artifacts.
## Building the Python Plugin
To build the Python plugin for IntelliJ IDEA Community Edition:
* Download the .tar.gz distribution of the most recent EAP or release build of IntelliJ IDEA Community Edition;
* Run the following command:
ant -Didea.path=<download path> -Didea.build.number=<build number of the build you're using> plugin
The .zip file of the built plugin will be placed at distCE/python-community-<branch number>.SNAPSHOT.zip
+5 -1
View File
@@ -17,10 +17,11 @@
<attribute name="script" />
<sequential>
<java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
<jvmarg line="-Xmx612m -XX:MaxPermSize=152m"/>
<jvmarg line="-Xmx612m -XX:MaxPermSize=152m -Didea.build.number=${idea.build.number} -DideaPath=${idea.path}"/>
<arg line="&quot;-Dgant.script=@{script}&quot;"/>
<arg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>
<arg line="&quot;-Didea.build.number=${idea.build.number}&quot;"/>
<arg line="&quot;-Didea.test.group=ALL_EXCLUDE_DEFINED&quot;"/>
<arg value="-f"/>
<arg value="${project.home}/build/gant.xml"/>
@@ -32,6 +33,9 @@
<call_gant script="${python.home}/build/pycharm_community_build.gant"/>
</target>
<target name="plugin" depends="init">
<call_gant script="${python.home}/build/python_plugin_build.gant"/>
</target>
<!--
<target name="test" depends="init">
<call_gant script="${project.home}/build/scripts/tests.gant"/>
+3 -2
View File
@@ -7,6 +7,7 @@ includeTargets << new File("${projectHome}/build/scripts/utils.gant")
setProperty("outDir", "${projectHome}/out/python")
setProperty("ideaDir", "${outDir}/ideaCE")
requireProperty("ideaPath", ideaDir)
setProperty("pluginHelp", "${outDir}/help")
@@ -71,8 +72,8 @@ target(name: "clean", description: "Cleanup output") {
target(name: "unzip") {
ant.mkdir(dir: "${ideaHomePacked}")
ant.gunzip(src: "${ideaDir}/ideaIC-${ideaBuildNumber}.tar.gz")
ant.untar(src: "${ideaDir}/ideaIC-${ideaBuildNumber}.tar", dest: "${ideaHomePacked}")
ant.gunzip(src: "${ideaPath}/ideaIC-${ideaBuildNumber}.tar.gz")
ant.untar(src: "${ideaPath}/ideaIC-${ideaBuildNumber}.tar", dest: "${ideaHomePacked}")
}
target(name: "compile", description: "Compile module python") {