code: def fixup_building_sdist():
      ''' Check for 'sdist' and ensure we always build BokehJS when packaging
  
      Source distributions do not ship with BokehJS source code, but must ship
      with a pre-built BokehJS library. This function modifies ``sys.argv`` as
      necessary so that ``--build-js`` IS present, and ``--install-js` is NOT.
  
      Returns:
          None
  
      '''
      if "sdist" in sys.argv:
          if "--install-js" in sys.argv:
              print("Removing '--install-js' incompatible with 'sdist'")
              sys.argv.remove('--install-js')
          if "--build-js" not in sys.argv:
              print("Adding '--build-js' required for 'sdist'")
              sys.argv.append('--build-js'f fixup_building_sdist():
      ''' Check for 'sdist' and ensure we always build BokehJS when packaging
  
      Source distributions do not ship with BokehJS source code, but must ship
      with a pre-built BokehJS library. This function modifies ``sys.argv`` as
      necessary so that ``--build-js`` IS present, and ``--install-js` is NOT.
  
      Returns:
          None
  
      '''
      if "sdist" in sys.argv:
          if "--install-js" in sys.argv:
              print("Removing '--install-js' incompatible with 'sdist'")
              sys.argv.remove('--install-js')
          if "--build-js" not in sys.argv:
              print("Adding '--build-js' required for 'sdist'")
              sys.argv.append('--build-js')
docs: Check for 'sdist' and ensure we always build BokehJS when packaging
  
      Source distributions do not ship with BokehJS source code, but must ship
      with a pre-built BokehJS library. This function modifies ``sys.argv`` as
      necessary so that ``--build-js`` IS present, and ``--install-js` is NOT.
  
      Returns:
          None