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


Groups > comp.lang.python > #106901 > unrolled thread

Advice on Python build tools

Started bySayth Renshaw <flebber.crue@gmail.com>
First post2016-04-12 02:48 -0700
Last post2016-04-14 09:44 +0000
Articles 6 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  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

#106901 — Advice on Python build tools

FromSayth Renshaw <flebber.crue@gmail.com>
Date2016-04-12 02:48 -0700
SubjectAdvice on Python build tools
Message-ID<5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com>
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

[toc] | [next] | [standalone]


#106903

FromSayth Renshaw <flebber.crue@gmail.com>
Date2016-04-12 03:04 -0700
Message-ID<e9db5830-1842-402f-b660-ea2831dd0837@googlegroups.com>
In reply to#106901
On Tuesday, 12 April 2016 19:48:43 UTC+10, Sayth Renshaw  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

Just to add if would affect your opinion I will be using Python 3 only so no py2 dependency and this is the project logya I was referring to https://github.com/yaph/logya

Sayth

[toc] | [prev] | [next] | [standalone]


#106904

FromBen Finney <ben+python@benfinney.id.au>
Date2016-04-12 21:10 +1000
Message-ID<mailman.43.1460459461.15650.python-list@python.org>
In reply to#106901
Sayth Renshaw <flebber.crue@gmail.com> writes:

> 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.

I'm quite fine with GNU Make, so haven't really tried a lot of others.

I am fascinated by what I've seen of Meson <URL:http://mesonbuild.com/>.
It claims to behave very well with operating system package managers,
which if true makes it unique among Python-based build systems.

-- 
 \                  “It is … incumbent upon us to recognize that it is |
  `\    inappropriate for religion to play any role in issues of state |
_o__)        [of] a modern democracy.” —Lawrence M. Krauss, 2012-05-28 |
Ben Finney

[toc] | [prev] | [next] | [standalone]


#106910

FromRustom Mody <rustompmody@gmail.com>
Date2016-04-12 07:16 -0700
Message-ID<389959fb-07a5-4499-aa51-2a14f5109ada@googlegroups.com>
In reply to#106904
On Tuesday, April 12, 2016 at 4:41:15 PM UTC+5:30, Ben Finney wrote:
> Sayth Renshaw  writes:
> 
> > 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.
> 
> I'm quite fine with GNU Make, so haven't really tried a lot of others.

Do people use 'make' for websites??
As far as I know they use tools like puppet, tox, fabric etc
eg
http://www.slideshare.net/adrian_nye/a-fabricpuppet-builddeploy-system
http://www.slideshare.net/tanihito/automated-deployment-with-fabric
> 
> I am fascinated by what I've seen of Meson <URL:http://mesonbuild.com/>.
> It claims to behave very well with operating system package managers,
> which if true makes it unique among Python-based build systems.

Interesting!

[toc] | [prev] | [next] | [standalone]


#106948

FromChris Warrick <kwpolska@gmail.com>
Date2016-04-13 17:19 +0200
Message-ID<mailman.76.1460560782.15650.python-list@python.org>
In reply to#106901
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

[toc] | [prev] | [next] | [standalone]


#106990

FromSayth Renshaw <flebber.crue@gmail.com>
Date2016-04-14 09:44 +0000
Message-ID<mailman.100.1460627171.15650.python-list@python.org>
In reply to#106901
Thanks for the tips. Doit does look interesting.

Regarding template plugins with Nikola the plugins would be only for python
template alternatives such as mako.

Mainly i find the whitespace and readability of Jade/pug far more pythonic
than all tge brackets {% .... %} yes its a minor thing but so much clearer.

Anyway checked out mako which has some improvement might see if there is
another with support and create a nikola plugin and then give it a try.

Cheers

Sayth

On Thu, 14 Apr 2016 1:19 am Chris Warrick <kwpolska@gmail.com> wrote:

> 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
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web