Skip to content

Instantly share code, notes, and snippets.

Avatar

Jiayun Zhou (Claudia) jiayun

View GitHub Profile
@jiayun
jiayun / graph-tool.rb
Created Jun 1, 2014
Homebrew formula for installing graph-tool to Python 3
View graph-tool.rb
require 'formula'
class GraphTool < Formula
homepage 'http://graph-tool.skewed.de/'
url 'http://downloads.skewed.de/graph-tool/graph-tool-2.2.31.tar.bz2'
sha1 '5e0b1c215ecd76191a82c745df0fac17e33bfb09'
head 'https://github.com/count0/graph-tool.git'
depends_on 'pkg-config' => :build
depends_on 'boost' => 'c++11'
@jiayun
jiayun / boost.rb
Created Jun 1, 2014
Homebrew formula for installing boost with Python 3
View boost.rb
require 'formula'
class UniversalPython < Requirement
satisfy(:build_env => false) { archs_for_command("python").universal? }
def message; <<-EOS.undent
A universal build was requested, but Python is not a universal build
Boost compiles against the Python it finds in the path; if this Python
is not a universal build then linking will likely fail.
You can’t perform that action at this time.