Build tool for Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hussein B

    Build tool for Python

    Hi.
    Apache Ant is the de facto building tool for Java (whether JSE, JEE
    and JME) application.
    With Ant you can do what ever you want: compile, generate docs,
    generate code, packing, deploy, connecting to remote servers and every
    thing.
    Do we have such a tool for Python projects?
    Thank you.
  • Diez B. Roggisch

    #2
    Re: Build tool for Python

    Hussein B wrote:
    Hi.
    Apache Ant is the de facto building tool for Java (whether JSE, JEE
    and JME) application.
    With Ant you can do what ever you want: compile, generate docs,
    generate code, packing, deploy, connecting to remote servers and every
    thing.
    Do we have such a tool for Python projects?
    distutils and setuptools are used to create distributions of
    python-packages, potentially compiling e.g. C or pyrex-sources, and you can
    hook into them to create e.g. api-docs.

    Diez

    Comment

    • Tim Henderson

      #3
      Re: Build tool for Python

      On Jul 29, 11:08 am, Hussein B <hubaghd...@gma il.comwrote:
      Hi.
      Apache Ant is the de facto building tool for Java (whether JSE, JEE
      and JME) application.
      With Ant you can do what ever you want: compile, generate docs,
      generate code, packing, deploy, connecting to remote servers and every
      thing.
      Do we have such a tool for Python projects?
      Thank you.
      You might want to take a look at Paver. http://www.blueskyonmars.com/projects/paver/

      Tim

      Comment

      • Paul Boddie

        #4
        Re: Build tool for Python

        On 29 Jul, 17:08, Hussein B <hubaghd...@gma il.comwrote:
        Apache Ant is the de facto building tool for Java (whether JSE, JEE
        and JME) application.
        With Ant you can do what ever you want: compile, generate docs,
        generate code, packing, deploy, connecting to remote servers and every
        thing.
        Do we have such a tool for Python projects?
        There are quite a few similar tools here:



        Having looked at a few such tools recently, I found myself considering
        using plain old make for automating various non-compilation-related
        activities, but then again, plain Python is actually very good for
        automation if you get into the right mindset. Consequently, I've just
        written a bunch of functions which run programs, test outputs and
        potentially feed those outputs to other programs.

        Where most of the available generic tools seem to frustrate is in
        their support of the often necessary but complicated behaviour
        required to minimise the amount of unnecessary work performed, through
        frameworks which seem to obscure the nature of the work itself. I do
        understand that it can be awkward to work out which object files need
        recompiling due to changes in source files, for example, and that one
        doesn't want to see the logic involved reproduced all over the place,
        but I do wonder whether the machinery around such matters isn't
        sometimes more complicated in these tools as soon as one strays
        outside the common cases.

        It seems to me that some common build-related primitives implemented
        as functions combined with plain Python would be a good enough
        combination for a lot of tasks in this domain.

        Paul

        Comment

        • Terry Reedy

          #5
          Re: Build tool for Python



          Hussein B wrote:
          Hi.
          Apache Ant is the de facto building tool for Java (whether JSE, JEE
          and JME) application.
          With Ant you can do what ever you want: compile, generate docs,
          generate code, packing, deploy, connecting to remote servers and every
          thing.
          Do we have such a tool for Python projects?
          Also see thread Continuous integration for Python projects and mention
          of buildbot.

          Comment

          • Sion Arrowsmith

            #6
            Re: Build tool for Python

            Hussein B <hubaghdadi@gma il.comwrote:
            >Apache Ant is the de facto building tool for Java (whether JSE, JEE
            >and JME) application.
            >With Ant you can do what ever you want: [ ... ]
            .... bash your head against your desk for hours trying to make sense
            of its classloader system, struggle for days on end trying to make
            it understand building anything outside the Java world, write piles
            of tedious and often boilerplate XML, wonder what happened to javac's
            ability to resolve dependencies to make this necessary ...

            Put it like this, my experience has lead me to regard Ant as a
            retrograde step compared to make. I can't understand why anyone
            would want to inflict such a thing on a Python project.

            --
            \S -- siona@chiark.gr eenend.org.uk -- http://www.chaos.org.uk/~sion/
            "Frankly I have no feelings towards penguins one way or the other"
            -- Arthur C. Clarke
            her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump

            Comment

            • Tim Arnold

              #7
              Re: Build tool for Python

              "Terry Reedy" <tjreedy@udel.e duwrote in message
              news:mailman.86 8.1217361931.92 2.python-list@python.org ...
              >
              >
              Hussein B wrote:
              >Hi.
              >Apache Ant is the de facto building tool for Java (whether JSE, JEE
              >and JME) application.
              >With Ant you can do what ever you want: compile, generate docs,
              >generate code, packing, deploy, connecting to remote servers and every
              >thing.
              >Do we have such a tool for Python projects?
              >
              Also see thread Continuous integration for Python projects and mention of
              buildbot.
              Surprised no one has mentioned SCons, http://www.scons.org/
              I've used it a bit and found it pretty good, out of the box.

              --Tim Arnold


              Comment

              Working...