def fixup_building_sdist():
 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')

def fixup_building_sdist ( ) : 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' )
check for sdist and ensure we always build bokehjs when packaging source distributions do not ship with bokehjs source code .