Skip to content

Commit

Permalink
Merge pull request mdtraj#1208 from mpharrigan/include-zlib
Browse files Browse the repository at this point in the history
Install path for zlib on linux (too)
  • Loading branch information
mpharrigan authored Nov 11, 2016
2 parents f4e591d + 4ccffb7 commit c96e7d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,14 @@ def format_extensions():
if sys.platform == 'win32':
# Conda puts the zlib headers in ./Library/... on windows
# If you're not using conda, good luck!
# (on linux, zlib is a dependency of python and its headers/libraries
# go in the normal ./include ./lib directories)
zlib_include_dirs += ["{}/Library/include".format(sys.prefix)]
zlib_library_dirs += ["{}/Library/lib".format(sys.prefix)]
else:
# On linux (and mac(?)) these paths should work for a standard
# install of python+zlib or a conda install of python+zlib
zlib_include_dirs += ["{}/include".format(sys.prefix)]
zlib_library_dirs += ["{}/lib".format(sys.prefix)]

tng = Extension('mdtraj.formats.tng',
sources=glob('mdtraj/formats/tng/src/compression/*.c') +
['mdtraj/formats/tng/src/lib/tng_io.c',
Expand Down

0 comments on commit c96e7d6

Please sign in to comment.