98

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?

6

9 Answers 9

41

InvokeFabric without the SSH dependencies.

The Fabric roadmap discusses that Fabric 1.x will be split into three portions:

  1. Invoke — The non-SSH task execution.
  2. Fabric 2.x — The remote execution and deployment library that utilizes Invoke.
  3. 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.
3
  • 1
    @IgorZevaka now it works on windows, the same topic - github.com/pyinvoke/invoke/pull/119 Jun 14, 2015 at 17:51
  • 1
    Was 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.
    – ddotsenko
    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?
    – inger
    Nov 11, 2020 at 16:39
28

Paver has a similar set of goals, though I don't really know how it compares.

5
14

Shovel seems promising:

Shovel — Rake for Python

https://github.com/seomoz/shovel

1
  • As of 23-Dec-15, Shovel was last updated a year ago on 5-Dec-14. Dec 23, 2015 at 13:05
6

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
  • 1
    What are the benefits of Waf other scons ?
    – Bite code
    Sep 10, 2009 at 22:51
5

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.

5

Although it is more commonly used for deployment, Fabric might be interesting for this use case.

0

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.

3
  • 1
    Using 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
    – Bite code
    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 ?
    – Bite code
    Sep 11, 2009 at 11:10
0

There is Phantom in Boo (which isn't Python, but nearly).

-2

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.

1
  • does it support things like documentation generation or running unit tests?
    – Wernight
    Oct 5, 2011 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.