Skip to content

Commit

Permalink
Merge pull request #20 from mattbaker-digital/master
Browse files Browse the repository at this point in the history
Fix missing Gregorian/SDN function exports in pxlib binaries
  • Loading branch information
mherrmann authored Apr 22, 2020
2 parents f420f57 + 2495b3b commit a797fdd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
Binary file modified pypxlib/pxlib_ctypes/libpx.so
Binary file not shown.
File renamed without changes.
Binary file added pypxlib/pxlib_ctypes/libpx_x64.so
Binary file not shown.
Binary file modified pypxlib/pxlib_ctypes/pxlib.dll
Binary file not shown.
Binary file modified pypxlib/pxlib_ctypes/pxlib_x64.dll
Binary file not shown.
10 changes: 9 additions & 1 deletion pypxlib/pxlib_ctypes/py2.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,15 @@ def add_library_search_dirs(other_dirs):

_is_64_bit = sys.maxsize > 2 ** 32

_px_lib = 'pxlib_x64' if sys.platform == 'win32' and _is_64_bit else 'px'
# Select the correct library for the platform and architecture
_px_lib = None
if sys.platform == 'win32' and _is_64_bit:
_px_lib = 'pxlib_x64'
elif _is_64_bit:
_px_lib = 'px_x64'
else:
_px_lib = 'px'

_libs["px"] = load_library(_px_lib)

# 1 libraries
Expand Down
10 changes: 9 additions & 1 deletion pypxlib/pxlib_ctypes/py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,15 @@ def add_library_search_dirs(other_dirs):

_is_64_bit = sys.maxsize > 2 ** 32

_px_lib = 'pxlib_x64' if sys.platform == 'win32' and _is_64_bit else 'px'
# Select the correct library for the platform and architecture
_px_lib = None
if sys.platform == 'win32' and _is_64_bit:
_px_lib = 'pxlib_x64'
elif _is_64_bit:
_px_lib = 'px_x64'
else:
_px_lib = 'px'

_libs["px"] = load_library(_px_lib)

# 1 libraries
Expand Down

0 comments on commit a797fdd

Please sign in to comment.