<commit_before>class Pyqt < Formula
  homepage "http://www.riverbankcomputing.co.uk/software/pyqt"
  url "https://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.11.1/PyQt-mac-gpl-4.11.1.tar.gz"
  sha1 "9d7478758957c60ac5007144a0dc7f157f4a5836"

  bottle do
    revision 1
    sha1 "251fb1a136972de87c98d3d06a3f5e1d6b8351d4" => :yosemite
    sha1 "43f5b59a2b08d5ed035016459ffce566577a6e42" => :mavericks
    sha1 "e058c40214fa5bed6391e815cfe7b2473b2bbc98" => :mountain_lion
  end

  depends_on :python => :recommended
  depends_on :python3 => :optional

  if build.without?("python3") && build.without?("python")
    odie "pyqt: --with-python3 must be specified when using --without-python"
  end

  depends_on "qt"

  if build.with? "python3"
    depends_on "sip" => "with-python3"
  else
    depends_on "sip"
  end

  def install
    # On Mavericks we want to target libc++, this requires a non default qt makespec
    if ENV.compiler == :clang and MacOS.version >= :mavericks
      ENV.append "QMAKESPEC", "unsupported/macx-clang-libc++"
    end

    Language::Python.each_python(build) do |python, version|
      ENV.append_path "PYTHONPATH", "#{Formula["sip"].opt_lib}/python#{version}/site-packages"<commit_msg>pyqt: bottle against system Python<commit_after>class Pyqt < Formula
  homepage "http://www.riverbankcomputing.co.uk/software/pyqt"
  url "https://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.11.1/PyQt-mac-gpl-4.11.1.tar.gz"
  sha1 "9d7478758957c60ac5007144a0dc7f157f4a5836"

  bottle do
    revision 1
    sha1 "251fb1a136972de87c98d3d06a3f5e1d6b8351d4" => :yosemite
    sha1 "43f5b59a2b08d5ed035016459ffce566577a6e42" => :mavericks
    sha1 "e058c40214fa5bed6391e815cfe7b2473b2bbc98" => :mountain_lion
  end

  option "without-python", "Build without python 2 support"
  depends_on :python3 => :optional

  if build.without?("python3") && build.without?("python")
    odie "pyqt: --with-python3 must be specified when using --without-python"
  end

  depends_on "qt"

  if build.with? "python3"
    depends_on "sip" => "with-python3"
  else
    depends_on "sip"
  end

  def install
    # On Mavericks we want to target libc++, this requires a non default qt makespec
    if ENV.compiler == :clang and MacOS.version >= :mavericks
      ENV.append "QMAKESPEC", "unsupported/macx-clang-libc++"
    end

    Language::Python.each_python(build) do |python, version|
      ENV.append_path "PYTHONPATH", "#{Formula["sip"].opt_lib}/python#{version}/site-packages"
{'fraction_non_alphanumeric': 0.12277147487844409, 'fraction_numerical': 0.10251215559157212, 'mean_word_length': 4.133056133056133, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4974935', 'n_tokens_mistral': 1107, 'n_tokens_neox': 985, 'n_words': 181}