Skip to content

Commit

Permalink
Compile boost from source to fix macOS wheels (ray-project#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoritz authored and robertnishihara committed Mar 9, 2018
1 parent 91464a5 commit 5ef0892
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .travis/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "macosx" ]]; then
echo "Updating brew."
brew update > /dev/null
fi
brew install cmake pkg-config automake autoconf libtool boost openssl bison > /dev/null
brew install cmake pkg-config automake autoconf libtool openssl bison > /dev/null
# Install miniconda.
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh -nv
bash miniconda.sh -b -p $HOME/miniconda
Expand All @@ -59,7 +59,7 @@ elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "macosx" ]]; then
echo "Updating brew."
brew update > /dev/null
fi
brew install cmake pkg-config automake autoconf libtool boost openssl bison > /dev/null
brew install cmake pkg-config automake autoconf libtool openssl bison > /dev/null
# Install miniconda.
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh -nv
bash miniconda.sh -b -p $HOME/miniconda
Expand All @@ -86,7 +86,7 @@ elif [[ "$MAC_WHEELS" == "1" ]]; then
echo "Updating brew."
brew update > /dev/null
fi
brew install cmake pkg-config automake autoconf libtool boost openssl bison > /dev/null
brew install cmake pkg-config automake autoconf libtool openssl bison > /dev/null
# We use true to avoid exiting with an error code because the brew install can
# fail if a package is already installed.
true
Expand Down
2 changes: 1 addition & 1 deletion doc/source/install-on-macosx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To build Ray, first install the following dependencies. We recommend using
.. code-block:: bash
brew update
brew install cmake pkg-config automake autoconf libtool boost openssl bison wget
brew install cmake pkg-config automake autoconf libtool openssl bison wget
pip install cython
Expand Down
4 changes: 3 additions & 1 deletion src/ray/object_manager/object_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ void ObjectManager::SchedulePull(const ObjectID &object_id, int wait_ms) {
pull_requests_[object_id] = Timer(new boost::asio::deadline_timer(
io_service_, boost::posix_time::milliseconds(wait_ms)));
pull_requests_[object_id]->async_wait(
boost::bind(&ObjectManager::SchedulePullHandler, this, object_id));
[this, object_id](const boost::system::error_code &error_code) {
RAY_CHECK_OK(SchedulePullHandler(object_id));
});
}

ray::Status ObjectManager::SchedulePullHandler(const ObjectID &object_id) {
Expand Down
2 changes: 1 addition & 1 deletion src/ray/raylet/lineage_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LineageCacheEntry {
private:
// TODO(swang): This should be an enum of the state of the entry - goes from
// completely local, to dirty, to in flight, to committed.
bool dirty_;
// bool dirty_;
};

class LineageCacheTaskEntry : public LineageCacheEntry {};
Expand Down
1 change: 1 addition & 0 deletions thirdparty/scripts/build_parquet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [ ! -d $TP_DIR/build/parquet-cpp ]; then
if [ "$unamestr" == "Darwin" ]; then
OPENSSL_ROOT_DIR=$OPENSSL_DIR \
PATH="$BISON_DIR:$PATH" \
BOOST_ROOT=$TP_DIR/pkg/boost \
ARROW_HOME=$TP_DIR/pkg/arrow/cpp/build/cpp-install \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \
Expand Down
7 changes: 2 additions & 5 deletions thirdparty/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ bash "$TP_SCRIPT_DIR/build_redis.sh"
bash "$TP_SCRIPT_DIR/build_credis.sh"

##############################################
# boost if necessary
# boost
##############################################
if [[ "$unamestr" == "Linux" ]]; then
echo "building boost"
bash "$TP_SCRIPT_DIR/build_boost.sh"
fi
bash "$TP_SCRIPT_DIR/build_boost.sh"

##############################################
# flatbuffers if necessary
Expand Down

0 comments on commit 5ef0892

Please sign in to comment.