Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How install python through a jira plugin.

DonPerera
Contributor
August 7, 2019

I'm currently developing a jira plugin which requires to install python on plugin installation.What is the best approach for this.

3 answers

1 accepted

0 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2019

I don't think you are on right track.

  • Python is OS dependent and it require,
    • you to  package multiple build of python in plugin (for windows, linux and mac)
      • Atlassian has size limitation of 102 MB for plugin (on marketplace)
      • you will easily surpass that if you go above mentioned route.
    • Another approach you can use is download python after plugin is installed
      • This will solve size problem, but some sites are not connected to internet.

Best way I see is ask user to setup python runtime after plugin installation.

One more out the box solution here will be using jython-standalone (Jython is python interpreter written in Java).

DonPerera
Contributor
August 8, 2019

Thank you for the quick reply .I have developed a plugin which uses python and this is  required to be deployed in an environment which has no internet access.So an separate python installation is not an option.Is there any other way to install python during plugin installation.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2019

As a system administrator, NO!

Never install something like a new language on a server like this.  If you did this on any system I looked after, I'd <do bad things to you, use your imagination and then make it worse>.  It's a vile security hole, and exactly the sort of thing black-hat hackers do.

Either include a jython library into your app (so that it's ring fenced within Jira), or document how to install Python so that your app can use it.  Or, best, use a technology already in Jira.

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2019

Hello,

I can not give you a complete solution because it will take more time, than I can afford. But I would look in Jython.

You can add this dependecny to your plugin and use it:

<dependency>
<groupId>org.python</groupId>
<artifactId>jython</artifactId>
<version>2.7.0</version>
</dependency>

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events