Python might not be up-to-date, so use opt_prefix
Fixes Homebrew/homebrew#24456.
This commit is contained in:
parent
b7060ebc43
commit
4943a81373
@ -278,7 +278,7 @@ class PythonDependency < Requirement
|
|||||||
# Todo: If Jack's formula revisions arrive, we can get rid of this here!
|
# Todo: If Jack's formula revisions arrive, we can get rid of this here!
|
||||||
if brewed?
|
if brewed?
|
||||||
require 'formula'
|
require 'formula'
|
||||||
file = Formula.factory(@python).prefix/"Frameworks/Python.framework/Versions/#{version.major}.#{version.minor}/lib/#{xy}/distutils/distutils.cfg"
|
file = Formula.factory(@python).opt_prefix/"Frameworks/Python.framework/Versions/#{version.major}.#{version.minor}/lib/#{xy}/distutils/distutils.cfg"
|
||||||
ohai "Writing #{file}" if ARGV.verbose? && ARGV.debug?
|
ohai "Writing #{file}" if ARGV.verbose? && ARGV.debug?
|
||||||
file.delete if file.exist?
|
file.delete if file.exist?
|
||||||
file.write <<-EOF.undent
|
file.write <<-EOF.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user