Did you run the 2to3 tool on the source first? Unfortunately, we did
not set up the tool to autorun on `setup.py install` so you have to do
it manually. Note that our next release (coming real soon and long
overdue) will fix this.
Also, note that Markdown 2.0.3 was released before Python 2.1.
Unfortunately, a workaround we included in Markdown 2.0.3 for a bug in
Python3.0's 2to3 tool breaks if you use Python 3.1+. I have not tested
whether Python3.0's 2to3 tool will generate code that works on
Python3.1+ - it might.
So, Markdown 2.0.3 only works with Python 3.0 (not greater) and only
after you manually run the 2to3 tool. I believe our documentation
indicates as much.
For more up-to-date code I suggest our github repo:
https://github.com/waylan/Python-Markdown
On Wed, Jun 29, 2011 at 12:13 PM, Vinay Sajip <vin...@ya...> wrote:
> According to PyPI, Markdown 2.0.3 is Python-3 friendly, but that's not the case
> as far as setup.py goes:
>
>
> Installing from archive: /tmp/Markdown-2.0.3.tar.gz
> File "setup.py", line 23
> print 'Created:', bat_path
> ^
> SyntaxError: invalid syntax
> failed to install
>
> Regards,
>
> Vinay Sajip
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Python-markdown-discuss mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss
>
--
----
\X/ /-\ `/ |_ /-\ |\|
Waylan Limberg
|