Skip to content

Commit

Permalink
yasm: always build python extension
Browse files Browse the repository at this point in the history
Closes #13889.

Signed-off-by: Tim D. Smith <[email protected]>
  • Loading branch information
tdsmith committed May 25, 2017
1 parent 81353a9 commit 73d1bfc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Formula/yasm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Yasm < Formula
homepage "http://yasm.tortall.net/"
url "https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz"
sha256 "3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
revision 1

bottle do
cellar :any_skip_relocation
Expand All @@ -20,21 +21,17 @@ class Yasm < Formula
depends_on "gettext"
end

deprecated_option "with-python" => "with-cython"

depends_on "cython" => [:build, :optional]
depends_on "cython" => :build

def install
args = %W[
--disable-debug
--prefix=#{prefix}
]

if build.with? "cython"
ENV.prepend_path "PYTHONPATH", Formula["cython"].opt_libexec/"lib/python2.7/site-packages"
args << "--enable-python"
args << "--enable-python-bindings"
end
ENV.prepend_path "PYTHONPATH", Formula["cython"].opt_libexec/"lib/python2.7/site-packages"
args << "--enable-python"
args << "--enable-python-bindings"

# https://github.com/Homebrew/legacy-homebrew/pull/19593
ENV.deparallelize
Expand Down

0 comments on commit 73d1bfc

Please sign in to comment.