Esempio n. 1
0
def Start(hardhatScript, workingDir, buildVersion, clobber, log, skipTests=False, upload=False):

    global buildenv, changes

    try:
        buildenv = hardhatlib.defaults
        buildenv['root'] = workingDir
        buildenv['hardhatroot'] = whereAmI
        hardhatlib.init(buildenv)
    
    except hardhatlib.HardHatMissingCompilerError:
        print "Could not locate compiler.  Exiting."
        sys.exit(1)
    
    except hardhatlib.HardHatUnknownPlatformError:
        print "Unsupported platform, '" + os.name + "'.  Exiting."
        sys.exit(1)
    
    except hardhatlib.HardHatRegistryError:
        print
        print "Sorry, I am not able to read the windows registry to find" 
        print "the necessary VisualStudio complier settings.  Most likely you"
        print "are running the Cygwin python, which will hopefully be supported"
        print "soon.  Please download a windows version of python from:\n"
        print "http://www.python.org/download/"
        print
        sys.exit(1)
    
    except Exception, e:
        print "Could not initialize hardhat environment.  Exiting."
        print "Exception:", e
        import traceback
        traceback.print_exc()
        sys.exit(1)
Esempio n. 2
0
def Start(hardhatScript,
          workingDir,
          buildVersion,
          clobber,
          log,
          skipTests=False,
          upload=False,
          tagID=None):

    global buildenv, changes

    try:
        buildenv = hardhatlib.defaults
        buildenv['root'] = workingDir
        buildenv['hardhatroot'] = whereAmI
        hardhatlib.init(buildenv)

    except hardhatlib.HardHatMissingCompilerError:
        print "Could not locate compiler.  Exiting."
        sys.exit(1)

    except hardhatlib.HardHatUnknownPlatformError:
        print "Unsupported platform, '" + os.name + "'.  Exiting."
        sys.exit(1)

    except hardhatlib.HardHatRegistryError:
        print
        print "Sorry, I am not able to read the windows registry to find"
        print "the necessary VisualStudio complier settings.  Most likely you"
        print "are running the Cygwin python, which will hopefully be supported"
        print "soon.  Please download a windows version of python from:\n"
        print "http://www.python.org/download/"
        print
        sys.exit(1)

    except Exception, e:
        print "Could not initialize hardhat environment.  Exiting."
        print "Exception:", e
        import traceback
        traceback.print_exc()
        sys.exit(1)
Esempio n. 3
0
    print
else:
    print "Whoops, couldn't find a __hardhat__.py file."
    sys.exit(1)

if string.find(projectRoot, ' ') >= 0:
    print "ERROR: Path to project ("+projectRoot+") cannot contain a space.  Exiting."
    sys.exit(1)



try:
    buildenv = hardhatlib.defaults
    buildenv['root'] = projectRoot
    buildenv['hardhatroot'] = whereAmI
    hardhatlib.init(buildenv)

except hardhatlib.HardHatMissingCompilerError:
    print "Could not locate compiler.  Exiting."
    sys.exit(1)

except hardhatlib.HardHatUnknownPlatformError:
    print "Unsupported platform, '" + os.name + "'.  Exiting."
    sys.exit(1)

except hardhatlib.HardHatRegistryError:
    print
    print "Sorry, I am not able to read the windows registry to find" 
    print "the necessary VisualStudio complier settings.  Most likely you"
    print "are running the Cygwin python, which will hopefully be supported"
    print "soon.  Please download a windows version of python from:\n"