Make framework install of Python actually usable.
No offense but the use of --with-framework-name option is totally wrong in the Formula. As noted in the Mac build [notes][1] --with-framework-name is *not* to pass the SDK path, but to rename it (e.g. "AwesomePython.framework" instead of just "Python.framework"). To build it as a Mac OS X framework you need to use the --enable-framework flag instead. The same with the other option -- to build Python universally. The flag --enable-universalsdk is missing. [1]: http://svn.python.org/projects/python/branches/release26-maint/Mac/README
This commit is contained in:
parent
18799c326e
commit
78faa1465c
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ class Python <Formula
|
||||||
args = ["--prefix=#{prefix}"]
|
args = ["--prefix=#{prefix}"]
|
||||||
|
|
||||||
if ARGV.include? '--framework'
|
if ARGV.include? '--framework'
|
||||||
args << "--with-framework-name=/Developer/SDKs/MacOSX#{MACOS_VERSION}.sdk"
|
args << "--enable-framework"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.include? '--intel'
|
if ARGV.include? '--intel'
|
||||||
args << "--with-universal-archs=intel"
|
args << "--with-universal-archs=intel --enable-universalsdk=/"
|
||||||
end
|
end
|
||||||
|
|
||||||
system "./configure", *args
|
system "./configure", *args
|
||||||
|
|
Loading…
Reference in a new issue