Sha256: 1b55b2f93578dc482b8e8df758e1c84ab452a5877c0884f6cc4feee360e0abc1

Contents?: true

Size: 350 Bytes

Versions: 11

Compression:

Stored size: 350 Bytes

Contents

require 'mkmf'

python = %w[ 2.7 2.6 2.5 2.4 ].find do |version|
  have_library("python#{version}", 'Py_Initialize', "python#{version}/Python.h")
end

$CFLAGS << " -Wall "

unless python
  $stderr.puts '*** could not find libpython or Python.h'
else
  $defs << "-DPYGMENTS_PYTHON_VERSION=#{python.gsub('.','')}"
  create_makefile('pygments_ext')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pygments.rb-0.2.13 ext/extconf.rb
pygments.rb-0.2.12 ext/extconf.rb
pygments.rb-0.2.11 ext/extconf.rb
pygments.rb-0.2.10 ext/extconf.rb
pygments.rb-0.2.9 ext/extconf.rb
pygments.rb-0.2.8 ext/extconf.rb
pygments.rb-0.2.7 ext/extconf.rb
pygments.rb-0.2.6 ext/extconf.rb
pygments.rb-0.2.4 ext/extconf.rb
pygments.rb-0.2.3 ext/extconf.rb
pygments.rb-0.2.2 ext/extconf.rb