Skip to content

Commit

Permalink
Merge pull request #23 from eirrgang/readthedocs
Browse files Browse the repository at this point in the history
Build faster on readthedocs.org. Run faster otherwise.
  • Loading branch information
eirrgang committed Apr 2, 2018
2 parents a02525d + d16a7e1 commit 4e125c4
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,21 @@ def build_extension(self, ext):
# Linking is a pain because the package is relocated to the site-packages directory. We should really do this
# in two stages.
if build_gromacs:
gromacs_url = "https://github.com/kassonlab/gromacs-gmxapi/archive/v0.0.4.zip"
gromacs_url = "https://github.com/kassonlab/gromacs-gmxapi/archive/master.zip"
gmxapi_DIR = os.path.join(extdir, 'data/gromacs')
extra_cmake_args = ['-DCMAKE_INSTALL_PREFIX=' + gmxapi_DIR,
'-DGMX_FFT_LIBRARY=fftpack',
'-DGMX_GPU=OFF',
'-DGMX_THREAD_MPI=ON']
if build_for_readthedocs:
extra_cmake_args = ['-DCMAKE_INSTALL_PREFIX=' + gmxapi_DIR,
'-DGMX_FFT_LIBRARY=fftpack',
'-DGMX_GPU=OFF',
'-DGMX_OPENMP=OFF',
'-DGMX_SIMD=None',
'-DGMX_USE_RDTSCP=OFF',
'-DGMX_MPI=OFF']
else:
extra_cmake_args = ['-DCMAKE_INSTALL_PREFIX=' + gmxapi_DIR,
'-DGMX_BUILD_OWN_FFTW=ON',
'-DGMX_GPU=OFF',
'-DGMX_THREAD_MPI=ON']

# Warning: make sure not to recursively build the Python module...
get_gromacs(gromacs_url,
Expand Down

0 comments on commit 4e125c4

Please sign in to comment.