Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106948

Re: Advice on Python build tools

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Warrick <kwpolska@gmail.com>
Newsgroups comp.lang.python
Subject Re: Advice on Python build tools
Date Wed, 13 Apr 2016 17:19:40 +0200
Lines 54
Message-ID <mailman.76.1460560782.15650.python-list@python.org> (permalink)
References <5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com> <CAMw+j7K7q5jmzkx0SLeYyRGzpEU8cV1XLRcdwZOa4Z9_Ffb6nQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de iDrCUHUenmbsMNK6ZTUX4AaEZN9tOLl23pgs5gU5WoHQ==
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'wiki': 0.03; 'static': 0.03; 'subject:Python': 0.05; 'preference': 0.05; 'dev': 0.07; 'subject:build': 0.07; 'cc:addr:python-list': 0.09; 'learn,': 0.09; 'spawn': 0.09; 'subject:tools': 0.09; 'subtle': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.10; 'template': 0.11; '2016': 0.16; 'generator.': 0.16; 'i\xe2\x80\x99m': 0.16; 'pythonic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subprocess,': 0.16; 'thoughts?': 0.16; 'wrote:': 0.16; 'hack': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'mixed': 0.22; 'cc:no real name:2**0': 0.22; 'needed.': 0.23; 'second': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'bugs': 0.27; 'message-id:@mail.gmail.com': 0.27; 'said,': 0.27; 'url:moin': 0.27; 'system,': 0.30; 'url:wiki': 0.30; 'url:mailman': 0.30; 'anyone': 0.32; 'core': 0.32; 'point': 0.33; 'url:python': 0.33; 'builds': 0.33; 'instead,': 0.33; 'similar': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'templates': 0.35; 'something': 0.35; 'received:74.125.82': 0.35; 'should': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'list.': 0.37; 'starting': 0.37; 'things': 0.38; 'url:mail': 0.40; 'build': 0.40; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'engines': 0.63; 'more': 0.63; 'great': 0.63; 'limit': 0.65; 'choose': 0.68; 'yourself,': 0.72; '(also,': 0.84; 'lean': 0.84; 'liking': 0.84; 'templates.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=FkjnbF19mEyTkjDkpYeOeSvZGcZ7a1cLMGSQa+7GlMs=; b=C7NvDFD9p7McH/Zdc9rBBcQOJkVLGjpRw50gq9kg5pqpOlkbM5Dxa4uB8Z164BR7kB PU8yGMI56d/sw5LibAhK45mGGrX/d8yH0LIUbVpP4e+VDd2lJz3ggWQ+ugsnIV6upUKT hVXhDiGeRiMOE3N+xN5TfHMj6RjtCpVtvwj/8BJrj7SCtgIJiGgMk1m3YkG1VcG4HDdd 8RcTxTenuF7O6me4foIVxYJ3XTO7MCxXOt92hfyBvpC4wm5C8YNNthGg95BvPT4cjusp xqZgQPmPnmIqqtxWMatwfd8HFsRxK2pEE5PA27F226L1rABgwxH2C8CZIGXTE/25F+lm XpQA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=FkjnbF19mEyTkjDkpYeOeSvZGcZ7a1cLMGSQa+7GlMs=; b=MXviAVtVEV+VUSykoN1MzGif7VIIbt7CFd3F/iFN06uBgkqVnBebsmHBEhoDW6eu9c 9NIBvaUljFlo/oYbXnaPpC1qJ/WoRCXnXrwNYdNigkDT3PACXlW9S9qNDOS1USv29bXa jPf6A6vZOV6+VaeIVOKkEUuRccdKP8ivZswbxIacCY5ew0+zlwnpSRmQNHgPwXzC679t K4sLvk0AfSNfdXpzlGCWnGhf4J9sbRlnMDV9FSOLONHwXNuzvnMJwdBqMS1mA/NAQ+5h qCI0igKSWBUQRnsYk7Bal5X5qS/HKUtkXhsNp/1IK4tpWgG5AeaRoifcCQKGMgbDO3yu S33Q==
X-Gm-Message-State AOPr4FUQAqKVJG34FLQJyWsriwPKqBxfNWixW9NI0emsYyYj12d5uAa6KMVDyquIPM2hmW3GDzIxtLZVBVRYhQ==
X-Received by 10.28.133.14 with SMTP id h14mr11519808wmd.100.1460560780689; Wed, 13 Apr 2016 08:19:40 -0700 (PDT)
In-Reply-To <5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAMw+j7K7q5jmzkx0SLeYyRGzpEU8cV1XLRcdwZOa4Z9_Ffb6nQ@mail.gmail.com>
X-Mailman-Original-References <5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com>
Xref csiph.com comp.lang.python:106948

Show key headers only | View raw


On 12 April 2016 at 11:48, Sayth Renshaw <flebber.crue@gmail.com> wrote:
> Hi
>
> Looking at the wiki list of build tools
> https://wiki.python.org/moin/ConfigurationAndBuildTools
>
> Has anyone much experience in build tools as i have no preference or experience to lean on.
>
> Off descriptions only i would choose invoke.
>
> My requirements, simply i want to learn and build a simple static website generator. Many i am not liking design of or are overkill so its a good opportunity to learn, logya is a good starting point for what i think a good python static generator should be.
>
> Second i want to use Jade templates (js) as i think they are more pythonic than jinja and mako so being able to have mixed js and python support would be needed.
>
> Thoughts?
>
> Sayth
> --
> https://mail.python.org/mailman/listinfo/python-list

Here’s a great static site generator (disclaimer, I’m a core dev over there):

https://getnikola.com/

We use doit, which is on that list. With doit, we get an existing
build system, and incremental rebuilds — for free. I recommend you try
Nikola, and if you don’t like it and still want to build something
yourself, doit is going to be a great way to do it. That said,
incremental builds often involve trial-and-error and subtle bugs when
you start working on it. And if you don’t like doit, you can always
write your own build micro-system. Because if you want to write
something simple and minimal, an existing large build system will just
make things harder.

As for Jade templates, you can’t do that reasonably. You would need to
produce some hack to spawn a JavaScript subprocess, and it would limit
what you can use in templates. Instead, look for a template system
that is written in Python and that has similar syntax.

(also, I wouldn’t consider such weird-thing-into-real-HTML template
engines pythonic)

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Advice on Python build tools Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-12 02:48 -0700
  Re: Advice on Python build tools Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-12 03:04 -0700
  Re: Advice on Python build tools Ben Finney <ben+python@benfinney.id.au> - 2016-04-12 21:10 +1000
    Re: Advice on Python build tools Rustom Mody <rustompmody@gmail.com> - 2016-04-12 07:16 -0700
  Re: Advice on Python build tools Chris Warrick <kwpolska@gmail.com> - 2016-04-13 17:19 +0200
  Re: Advice on Python build tools Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-14 09:44 +0000

csiph-web