Make Python plugin for IDEA compatible with CLion and Rider
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 17 Nov 2016 18:07:48 +0000 (19:07 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 22 Nov 2016 11:57:36 +0000 (12:57 +0100)
(cherry picked from commit d238ce95813f05ba9744e6a124242f2c23d0ca69)
(cherry picked from commit e4bdab382c0868715e05873bd14ee61f31865c29)

python/pluginResources/META-INF/plugin.xml
python/pluginResources/META-INF/python-plugin-minor-ide.xml [new file with mode: 0644]
python/python-community-plugin.iml [new file with mode: 0644]

index 41e58fe864edacc557121e7e13b9c2f39db3e5b0..c1dfd919b7ae7fccf28dbc51dbb7f76a926d77b6 100644 (file)
@@ -16,13 +16,15 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
 ]]></description>
 
   <version>@@PYCHARM_VERSION@@</version>
 ]]></description>
 
   <version>@@PYCHARM_VERSION@@</version>
-  <depends>com.intellij.modules.java</depends>
 
 
   <vendor url="https://www.jetbrains.com/pycharm/">JetBrains</vendor>
   <xi:include href="/META-INF/python-core-plugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
   <xi:include href="/META-INF/python-community-plugin-core.xml" xpointer="xpointer(/idea-plugin/*)"/>
 
 
   <vendor url="https://www.jetbrains.com/pycharm/">JetBrains</vendor>
   <xi:include href="/META-INF/python-core-plugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
   <xi:include href="/META-INF/python-community-plugin-core.xml" xpointer="xpointer(/idea-plugin/*)"/>
-  <xi:include href="/META-INF/python-community-plugin-java.xml" xpointer="xpointer(/idea-plugin/*)"/>
+
+  <depends optional="true" config-file="python-community-plugin-java.xml">com.intellij.modules.java</depends>
+  <depends optional="true" config-file="python-plugin-minor-ide.xml">com.intellij.modules.clion</depends>
+  <depends optional="true" config-file="python-plugin-minor-ide.xml">com.intellij.modules.rider</depends>
 
   <!-- Two different versions of this file exist: one is used when building from sources (when auxiliary
      plugins are loaded as separate plugins) and another is used for the real release build (when auxiliary
 
   <!-- Two different versions of this file exist: one is used when building from sources (when auxiliary
      plugins are loaded as separate plugins) and another is used for the real release build (when auxiliary
diff --git a/python/pluginResources/META-INF/python-plugin-minor-ide.xml b/python/pluginResources/META-INF/python-plugin-minor-ide.xml
new file mode 100644 (file)
index 0000000..a63bada
--- /dev/null
@@ -0,0 +1,10 @@
+<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
+  <xi:include href="/META-INF/python-community-configure-common.xml" xpointer="xpointer(/idea-plugin/*)"/>
+
+  <extensions defaultExtensionNs="com.intellij">
+    <projectConfigurable groupId="build" groupWeight="118"
+                         id="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
+                         displayName="Python Interpreter"
+                         instance="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"/>
+  </extensions>
+</idea-plugin>
diff --git a/python/python-community-plugin.iml b/python/python-community-plugin.iml
new file mode 100644 (file)
index 0000000..f51d7a6
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="lang-api" />
+    <orderEntry type="module" module-name="openapi" />
+    <orderEntry type="module" module-name="idea" />
+    <orderEntry type="module" module-name="idea-ui" />
+    <orderEntry type="module" module-name="xml" />
+    <orderEntry type="module" module-name="python-community-plugin-core" exported="" />
+    <orderEntry type="module" module-name="python-community-plugin-java" exported="" />
+    <orderEntry type="module" module-name="python-community" exported="" />
+    <orderEntry type="module" module-name="python-community-plugin-resources" exported="" />
+    <orderEntry type="module" module-name="python-community-configure" exported="" />
+  </component>
+</module>
\ No newline at end of file