Skip to content

Commit

Permalink
Added OSX Homebrew lib path for Apple M1 #61 (#62)
Browse files Browse the repository at this point in the history
Added OSX Homebrew lib path for Apple M1 #61
  • Loading branch information
lilohuang committed Mar 6, 2022
1 parent ae3da71 commit 8706665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages
setup(
name='PyTurboJPEG',
version='1.6.5',
version='1.6.6',
description='A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.',
author='Lilo Huang',
author_email='kuso.cc@gmail.com',
Expand Down
5 changes: 3 additions & 2 deletions turbojpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# SOFTWARE.

__author__ = 'Lilo Huang <kuso.cc@gmail.com>'
__version__ = '1.6.5'
__version__ = '1.6.6'

from ctypes import *
from ctypes.util import find_library
Expand All @@ -38,7 +38,8 @@
DEFAULT_LIB_PATHS = {
'Darwin': [
'/usr/local/opt/jpeg-turbo/lib/libturbojpeg.dylib',
'/opt/libjpeg-turbo/lib64/libturbojpeg.dylib'
'/opt/libjpeg-turbo/lib64/libturbojpeg.dylib',
'/opt/homebrew/opt/jpeg-turbo/lib/libturbojpeg.dylib'
],
'Linux': [
'/usr/lib/x86_64-linux-gnu/libturbojpeg.so.0',
Expand Down

0 comments on commit 8706665

Please sign in to comment.