bottle: remove pyc files before bottling.

Allows more `cellar :any` bottles.
This commit is contained in:
Mike McQuaid 2014-03-13 09:06:22 +00:00
parent 916e751596
commit 0e52cc6188

View File

@ -136,6 +136,7 @@ module Homebrew extend self
begin begin
keg.relocate_install_names prefix, Keg::PREFIX_PLACEHOLDER, keg.relocate_install_names prefix, Keg::PREFIX_PLACEHOLDER,
cellar, Keg::CELLAR_PLACEHOLDER, :keg_only => f.keg_only? cellar, Keg::CELLAR_PLACEHOLDER, :keg_only => f.keg_only?
keg.delete_pyc_files!
HOMEBREW_CELLAR.cd do HOMEBREW_CELLAR.cd do
# Use gzip, faster to compress than bzip2, faster to uncompress than bzip2 # Use gzip, faster to compress than bzip2, faster to uncompress than bzip2