Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

To run python setup tools using Maven

snehal.shaha created the topic: To run python setup tools using Maven
Hi All

I have two modules in my project.
1. Java module
2. Python Module

I am using Maven for java and building the module

For python I decided to use setuptools (setup.py).

I want to use Maven and try and build Python Module.
Please can anybody help how to use any plugin available in Maven to Build Python Project.

The exact example code for POM.xml

If not this way, Can you suggest me some way I can use one tool and do both of this.
I am preferring Maven to be used for whole project.

Thanks in advance,
Snehal

tpatil replied the topic: Re: To run python setup tools using Maven
Hi Snehal,

You can use maven-exec-plugin to execute python script using maven.

E.g. org.codehaus.mojo
exec-maven-plugin



python
src/main/python

build.py


../../main/python:$PYTHONPATH


python-build package
exec


Hope this helps…

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x