/[escript]/trunk/site_scons/dependencies.py
ViewVC logotype

Diff of /trunk/site_scons/dependencies.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7030 by uqaeller, Tue Nov 17 09:30:11 2020 UTC revision 7031 by aellery, Tue Nov 17 23:44:30 2020 UTC
# Line 315  def checkBoost(env): Line 315  def checkBoost(env):
315                  spath.append(boost_lib_path)                  spath.append(boost_lib_path)
316                  p2name = ''                  p2name = ''
317                  p3name = ''                  p3name = ''
318                    p2res = ''
319                    p3res = ''
320                  for name in spath:                  for name in spath:
321                      try:                      try:
322                          l=os.listdir(name)                          l=os.listdir(name)
   
323                          import sys                          import sys
324                          if sys.version_info[0] == 3:                          if sys.version_info[0] == 3:
325                              string_type = str                              string_type = str
326                          else:                          else:
327                              string_type = basestring                              string_type = basestring
   
                         p2res = ''  
                         p3res = ''  
328                          for x in l:                          for x in l:
329                              if isinstance(x,string_type):                              if isinstance(x,string_type):
330                                  if x.startswith('libboost_numpy2') and x.endswith('.so'):                                  if x.startswith('libboost_numpy') and x.endswith('.so'):
331                                      p2res = x                                      p2res = x
332                                  if x.startswith('libboost_numpy-py2') and x.endswith('.so'):                                  if x.startswith('libboost_numpy-py2') and x.endswith('.so'):
333                                      p2res = x                                      p2res = x

Legend:
Removed from v.7030  
changed lines
  Added in v.7031

  ViewVC Help
Powered by ViewVC 1.1.26