Sha256: f8d05fb0ce0975cdb94d424481633b92ad482239561ae49e7898ada834c92f49
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
require 'mkmf' require 'open3' begin if (Open3.popen3("python --version") { |i,o,e| e.read}.chomp.split[1].to_f < 2.4) puts "Rubypython seem to think you don't have python 2.4 or higher." puts "Try install anyway? (y/n)" c=gets.chomp while !["y","n"].member? c do puts "Please type y or n" end if(c=="n") exit -1 end end rescue puts "Could not check python version. Do you have Python 2.4 or higher? (y/n)" if(gets.chomp == "n") puts "Please install Python 2.4 or higher" exit end puts "Okay." end dir_config("rubypython_bridge") if(!system("which python-config")) print "Can't configure with python_config" exit -1 end unless find_library("python2.6",nil)||find_library("python2.5",nil)||find_library("python2.4",nil) puts "Could not find python libraries" exit -1 end if RUBY_VERSION=~/1\.9/ then puts "Building for Ruby 1.9" $CPPFLAGS += " -DRUBY_19" end find_header("Python.h",*`python-config --includes`.split.map{|s| s[2..-1]<<"/"}) create_makefile("rubypython_bridge")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubypython-0.2.9 | ext/rubypython_bridge/extconf.rb |
rubypython-0.2.8 | ext/rubypython_bridge/extconf.rb |
rubypython-0.2.7 | ext/rubypython_bridge/extconf.rb |