Pelican on Windows

Mon 12 February 2018 by Torfinn Ingolfsen

Installing Pelican on Windows is quite easy. You need Python of course, then it is just 'pip install pelican' followed by 'pip install MarkDown' and Pelican is installed. All this from PowerShell.

Unfortunately, my setup uses a Makefile (originally I set up this under Linux). So I need make, the Makefile needs sed and tr and perhaps date. GnuWin to the rescue, it has packages for make, sed and coreutils (which contains tr).

There are some things I haven't got working, like date. The date command from GnuWin coreutils package is installed, when I run it from a powershell (the same command as in my Makefile, it works. If I enable it in the Makefile, make hangs. Another issue is that make generates content filenames with prefixed and postfixed with dashes ('-'), even if the Makefile code to generate a slug works. If the slug is 'this-is-a-test", the filename will be '-this-is-a-test-.md' and I don't know why yet.