Rake is a software build tool written in Ruby (like Ant or Make), and so all its files are written in this language. Does something like this exist in Python?
-
3Are you looking for a general dependency resolution and build tool, like make, which can build projects from any language? Or something to build python packages specifically?– Ian ClellandSep 10, 2009 at 21:34
-
1Something general. Building Python package is interesting, but can be performed with general tools.– Bite codeSep 10, 2009 at 22:50
-
2also see: stackoverflow.com/questions/542289/…– RayMar 14, 2010 at 7:31
-
1also see farmdev.com/thoughts/46/the-python-make-tool– jassinmJul 7, 2011 at 13:44
-
6Did anyone came here from Joe Armstrong slide? youtu.be/lKXe3HUG2l4?t=1270– nephewtomOct 19, 2016 at 11:43
9 Answers
Invoke — Fabric without the SSH dependencies.
The Fabric roadmap discusses that Fabric 1.x will be split into three portions:
- Invoke — The non-SSH task execution.
- Fabric 2.x — The remote execution and deployment library that utilizes Invoke.
- Patchwork — The "common deployment/sysadmin operations, built on Fabric."
Invoke is a Python (2.6+ and 3.3+) task execution tool & library, drawing inspiration from various sources to arrive at a powerful & clean feature set.
Below are a few descriptive statements from Invoke's website:
- Invoke is a Python (2.6+ and 3.3+) task execution tool & library, drawing inspiration from various sources to arrive at a powerful & clean feature set.
- Like Ruby’s Rake tool and Invoke’s own predecessor Fabric 1.x, it provides a clean, high level API for running shell commands and defining/organizing task functions from a tasks.py file.
-
1@IgorZevaka now it works on windows, the same topic - github.com/pyinvoke/invoke/pull/119 Jun 14, 2015 at 17:51
-
1Was Shovel user some 4 years ago. Definitely go with Invoke now. Very cool command-line interface, task declaration is nice and easy, chaining feels like Make's. Nice. Mar 24, 2020 at 2:49
-
Any opinions on Paver (mentioned in other answers on this Q), vs Invoke? are they direct "competitors"? Pros/Cons?– ingerNov 11, 2020 at 16:39
Paver has a similar set of goals, though I don't really know how it compares.
-
-
1
-
2The project is still active, the changelog is now here: pythonhosted.org/Paver/changelog.html Aug 15, 2014 at 0:03
-
1Latest version at pythonhosted.org/Paver/changelog.html is
1.1.0 (July 30, 2012)
– clackeSep 21, 2017 at 22:56 -
Any opinions on Invoke (mentioned in other answers on this Q), vs Paver? are they direct "competitors"? Pros/Cons?– ingerNov 11, 2020 at 16:39
Waf is a Python-based framework for configuring, compiling and installing applications. It derives from the concepts of other build tools such as Scons, Autotools, CMake or Ant.
-
1
There is also doit - I came across it while looking for these things a while ago, though I didn't get very far with evaluating it.
Although it is more commonly used for deployment, Fabric might be interesting for this use case.
Also check out buildout, which isn't so much a make system for software, as a make system for a deployment.
http://pypi.python.org/pypi/pysqlite/2.5.5
So it's not a direct rake equivalent, but may be a better match for what you want to do, or a really lousy one.
-
1Using buildout for that is like jusing a tank to go to the mall, isn't it ? Using any Zope / Plone tools outside Zope / Plone generally is, anyway :-p Sep 10, 2009 at 22:52
-
"For that"? He didn't specify what he wanted to use it for. Anyway, buildout is not a Zope/Plone tool. It is also not big or complex. It's really quote tiring that some people will dismiss tool only because it's written by or used by Zope developers. That attitude it pretty daft. Sep 11, 2009 at 6:45
-
Come on, that was just teasing. I used to work for a Plone-only company and yes, we use to make a lot of jokes about the tools we were using. That's a sane attitude, don't you think ? Sep 11, 2009 at 11:10
I would check out distutils
:
The
distutils
package provides support for building and installing additional modules into a Python installation. The new modules may be either 100%-pure Python, or may be extension modules written in C, or may be collections of Python packages which include modules coded in both Python and C.
-
does it support things like documentation generation or running unit tests?– WernightOct 5, 2011 at 7:22