summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-05 17:35:09 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-05 17:35:09 +0900
commit9c7042fbed34141bffa0ddf8cdd4da1a9222a684 (patch)
tree869152a3606612cb4bb392db6ca29d4a92edc713 /ext
parent545b71651e43f6ae2cdd7ed7fc65adfa5edb5815 (diff)
downloadpsych-9c7042fbed34141bffa0ddf8cdd4da1a9222a684.tar.gz
Removed the related files for downloading with extlibs
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/extconf.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 6d03870..16c76e4 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -18,23 +18,6 @@ end
if yaml_source == true
# search the latest libyaml source under $srcdir
yaml_source = Dir.glob("#{$srcdir}/yaml{,-*}/").max_by {|n| File.basename(n).scan(/\d+/).map(&:to_i)}
- unless yaml_source
- download_failure = "failed to download libyaml source. Try manually installing libyaml?"
- begin
- require_relative '../../tool/extlibs.rb'
- rescue LoadError
- # When running in ruby/ruby, we use miniruby and don't have stdlib.
- # Avoid LoadError because it aborts the whole build. Usually when
- # stdlib extension fail to configure we skip it and continue.
- raise download_failure
- end
- extlibs = ExtLibs.new(cache_dir: File.expand_path("../../tmp/download_cache", $srcdir))
- unless extlibs.process_under($srcdir)
- raise download_failure
- end
- yaml_source, = Dir.glob("#{$srcdir}/yaml-*/")
- raise "libyaml not found" unless yaml_source
- end
elsif yaml_source
yaml_source = yaml_source.gsub(/\$\((\w+)\)|\$\{(\w+)\}/) {ENV[$1||$2]}
end