Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1250

Better Search for Program Files Directory in scons

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Windows builds through scons

      Description

      The boost code is not searching for the windows program files folder properly.

      This is set in an environmental variable, actually 3 on 64 bit windows:

      ProgramFiles=C:\Program Files
      ProgramFiles(x86)=C:\Program Files (x86)
      ProgramW6432=C:\Program Files

      It might not necessarily be "C:\program files".

      def find_boost():
      for x in ('', ' (x86)'):
      boostDir = "C:/Program Files" + x + "/boost/latest"
      if os.path.exists( boostDir ):
      return boostDir
      for bv in reversed( range(33,50) ):
      for extra in ('', '_0', '_1'):
      boostDir = "C:/Program Files" + x + "/Boost/boost_1_" + str(bv) + extra
      if os.path.exists( boostDir ):
      return boostDir
      if os.path.exists( "C:/boost" ):
      return "C:/boost"
      if os.path.exists( "/boost" ):
      return "/boost"
      return None

      boostDir = find_boost()
      if boostDir is None:
      print( "can't find boost" )
      Exit(1)

        Attachments

          Activity

            People

            Assignee:
            backlog-server-build Backlog - Build Team
            Reporter:
            zippy1981 Justin Dearing
            Participants:
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: