pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

use python2 instead of python #50

Closed haileys closed 11 years ago

haileys commented 11 years ago

I run Arch Linux in production, which uses Python 3 for its /usr/bin/python.

mentos.py should explicitly state that it wants Python 2.

veprbl commented 11 years ago

+1

tnm commented 11 years ago

This will break on older distros, like an old Debian. I'm going to close in favor of us adding support for Python 3 itself, which will obviate this entire issue.

haileys commented 11 years ago

In the meantime, is it possible to detect the right Python executable to use from Ruby, and then run mentos.py through that?

I'm using my fork of pygments.rb on my sites, but I'd like to start using mainline again.