Sha256: 4763cf027cc719e24aac4ea8274ebf86ebee8057eae2f44a811c81704d196466

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 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
  $CFLAGS << " -I/usr/include/python#{python} "
  create_makefile('pygments_ext')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pygments.rb-0.2.1 ext/extconf.rb
pygments.rb-0.2.0 ext/extconf.rb
pygments.rb-0.1.3 ext/extconf.rb
pygments.rb-0.1.2 ext/extconf.rb