Browse Source

Merge branch 'master' into collada_makehuman_issue_3984

Kim Kulling 4 years ago
parent
commit
5693bc71f3
2 changed files with 3 additions and 1 deletions
  1. 1 0
      cmake/assimp-hunter-config.cmake.in
  2. 2 1
      port/PyAssimp/pyassimp/helper.py

+ 1 - 0
cmake/assimp-hunter-config.cmake.in

@@ -9,6 +9,7 @@ find_package(poly2tri CONFIG REQUIRED)
 find_package(polyclipping CONFIG REQUIRED)
 find_package(polyclipping CONFIG REQUIRED)
 find_package(zip CONFIG REQUIRED)
 find_package(zip CONFIG REQUIRED)
 find_package(pugixml CONFIG REQUIRED)
 find_package(pugixml CONFIG REQUIRED)
+find_package(stb CONFIG REQUIRED)
 
 
 if(@ASSIMP_BUILD_DRACO@)
 if(@ASSIMP_BUILD_DRACO@)
   find_package(draco CONFIG REQUIRED)
   find_package(draco CONFIG REQUIRED)

+ 2 - 1
port/PyAssimp/pyassimp/helper.py

@@ -34,7 +34,8 @@ if os.name=='posix':
         additional_dirs.extend([item for item in os.environ['LD_LIBRARY_PATH'].split(':') if item])
         additional_dirs.extend([item for item in os.environ['LD_LIBRARY_PATH'].split(':') if item])
 
 
     # check if running from anaconda.
     # check if running from anaconda.
-    if "conda" or "continuum" in sys.version.lower():
+    anaconda_keywords = ("conda", "continuum")
+    if any(k in sys.version.lower() for k in anaconda_keywords):
       cur_path = get_python_lib()
       cur_path = get_python_lib()
       pattern = re.compile('.*\/lib\/')
       pattern = re.compile('.*\/lib\/')
       conda_lib = pattern.match(cur_path).group()
       conda_lib = pattern.match(cur_path).group()