[Distutils] comparison of configuration languages
Łukasz Langa
lukasz at langa.pl
Mon May 9 22:52:41 EDT 2016
Next thing you know we end up with a new setup.py, with imports, PYTHONPATH hacking et al ;-)
> On May 9, 2016, at 7:34 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
>
> I just found this on StackOverflow:
>
> http://stackoverflow.com/a/648487/208880
>
> tl;dr
> -----
>
> > Recently I was working upon a project and I realised that I wanted to
> > have conditionals inside my configuration file [...]
> >
> > I didn't want to write a mini-language, because unless I did it very
> > carefully I couldn't allow the flexibility that would be useful.
> >
> > Instead I decided that I'd have two forms: If the file started with
> > "#!" and was executable I'd parse the result of running it; otherwise
> > I'd read it as-is
>
> That approach seems like a win-win: the plain-vanilla static file can be promoted as best-practice, yet we have a fall-back for the complicated and edge cases.
>
> --
> ~Ethan~
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160509/fdbf84da/attachment.sig>
More information about the Distutils-SIG
mailing list