You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of C_INCLUDE_PATH, LD_RUN_PATH are actually colon separated lists of multiple paths, but setup.py doesn't take it into account.
Similarly, MSVC uses INCLUDE and LIB environment variables for the same purpose (but with semi-colon as separator), and it's better to be supported for win32 build.
The following patch takes care of all of them.
# include, rpath, if set as environment variables:
- if os.environ.get('C_INCLUDE_PATH'):
- _add_directory(include_dirs, os.environ.get('C_INCLUDE_PATH'))
- if os.environ.get('LD_RUN_PATH'):
- _add_directory(library_dirs, os.environ.get('LD_RUN_PATH'))
+ for k in 'C_INCLUDE_PATH INCLUDE'.split():
+ if k in os.environ:
+ for d in os.environ[k].split(os.path.pathsep):
+ _add_directory(include_dirs, d)
+
+ for k in 'LD_RUN_PATH LIBRARY_PATH LIB'.split():
+ if k in os.environ:
+ for d in os.environ[k].split(os.path.pathsep):
+ _add_directory(library_dirs, d)
prefix = sysconfig.get_config_var("prefix")
The text was updated successfully, but these errors were encountered:
Both of C_INCLUDE_PATH, LD_RUN_PATH are actually colon separated lists of multiple paths, but setup.py doesn't take it into account.
Similarly, MSVC uses INCLUDE and LIB environment variables for the same purpose (but with semi-colon as separator), and it's better to be supported for win32 build.
The following patch takes care of all of them.
The text was updated successfully, but these errors were encountered: