Updated Python recipe

No longer strips the main Python executable, as that was breaking the ability
of dlopen() and thus import .so based modules.

This change depends on changes to keg & formula that allow files to not be
cleaned.

Also, replaced a duplicate libpython2.6.a with a link (saves 6MB.)
This commit is contained in:
Adam Vandenberg 2009-08-03 15:22:04 -07:00 committed by Max Howell
parent aa14a25a43
commit 3a6b50192b

View file

@ -10,10 +10,17 @@ class Python <Formula
LibraryDep.new 'readline'
end
def skip_clean? path
return path == bin+'python' or path == bin+'python2.6'
end
def install
# Todo: Link against custom readline
system "./configure --prefix='#{prefix}'"
system "./configure --prefix='#{prefix}' --with-framework-name=/Developer/SDKs/MacOSX10.5.sdk"
system "make"
system "make install"
# lib/python2.6/config contains a copy of libpython.a; make this a link instead
(lib+'python2.6/config/libpython2.6.a').unlink
(lib+'python2.6/config/libpython2.6.a').make_link lib+'libpython2.6.a'
end
end