def fixup_for_packaged():
 if exists(join(ROOT, 'PKG-INFOvi ')):
  if (('--build-js' in sys.argv) or ('--install-js' in sys.argv)):
   print(SDIST_BUILD_WARNING)
   if ('--build-js' in sys.argv):
    sys.argv.remove('--build-js')
   if ('--install-js' in sys.argv):
    sys.argv.remove('--install-js')
  if ('--existing-js' not in sys.argv):
   sys.argv.append('--existing-js')

def fixup_for_packaged ( ) : if exists ( join ( ROOT , 'PKG-INFOvi ' ) ) : if ( ( '--build-js' in sys . argv ) or ( '--install-js' in sys . argv ) ) : print ( SDIST_BUILD_WARNING ) if ( '--build-js' in sys . argv ) : sys . argv . remove ( '--build-js' ) if ( '--install-js' in sys . argv ) : sys . argv . remove ( '--install-js' ) if ( '--existing-js' not in sys . argv ) : sys . argv . append ( '--existing-js' )
if we are installing from an sdist .