Skip to content

Instantly share code, notes, and snippets.

@kozo2
Created July 7, 2015 11:45
Show Gist options
  • Save kozo2/5a7c085f613af30bfda7 to your computer and use it in GitHub Desktop.
Save kozo2/5a7c085f613af30bfda7 to your computer and use it in GitHub Desktop.

Building Python Wheel (including C++ module)

Requirements (C++)

  • G++
  • GSL
  • Boost
  • HDF5(C++)

Requirements (Python)

  • Cython
  • Wheel
git clone git://github.com/ecell/ecell4
cd ecell4/python
python setup.py build_ext
python setup.py bdist_wheel

Mac OS X

brew install gsl boost hub
brew install homebrew/science/hdf5 --enable-cxx

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
pip install cython --user
pip install setuptools --user
hub clone ecell/ecell4
cp ecell4/ecell4/core/config.h.win32 ecell4/ecell4/core/config.h
sed -i -e "s/#define WIN32_MSC 1//g" ecell4/ecell4/core/config.h
cd ecell4/python
python setup.py build_ext

Building C++ module

Requirements

  • G++
  • GSL
  • Boost
  • HDF5(C++)
  • cmake
git clone git://github.com/ecell/ecell4
cd ecell4/ecell4
cmake .
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment