Skip to content

Commit

Permalink
Check Multi-Arch path to fix build on Debian. (#71)
Browse files Browse the repository at this point in the history
The Debian package failed to build as reported in [Debian Bug #1066395](https://bugs.debian.org/1066395).

This is fixed by also searching the [MultiArch](https://wiki.debian.org/Python/MultiArch#Python_code) path for the hdf4alt libraries.
  • Loading branch information
sebastic committed Mar 14, 2024
1 parent e8f87ad commit f508ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import os.path as path
import shlex
import sysconfig

from setuptools import Extension, setup
import numpy as np
Expand Down Expand Up @@ -31,6 +32,7 @@ def _use_hdf4alt(libdirs):
if not sys.platform.startswith("linux"):
return False
libdirs.extend(os.environ.get("LD_LIBRARY_PATH", "").split(os.pathsep))
libdirs.append("/usr/lib/%s" % sysconfig.get_config_var('MULTIARCH'))
libdirs.append("/usr/lib")
libdirs.append("/usr/local/lib")
libdirs.append("/lib")
Expand Down

0 comments on commit f508ec8

Please sign in to comment.