if "EDNA_HOME" in os.environ: if os.environ["EDNA_HOME"] != strEdnaHome: print("Warning: EDNA_HOME redefined to %s" % strEdnaHome) os.environ["EDNA_HOME"] = strEdnaHome else: os.environ["EDNA_HOME"] = strEdnaHome sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src")) from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller from EDVerbose import EDVerbose if __name__ == "__main__": installDir = os.path.abspath(sys.argv[0]).split(os.sep)[-2] EDVerbose.screen("Building %s" % installDir) install = EDUtilsLibraryInstaller(installDir, strArchiveName) install.checkPythonVersion() install.downloadLibrary() install.dependency("numpy", "20090405-Numpy-1.3") install.unZipArchive() try: install.buildSources() except Exception: EDVerbose.ERROR("Error in the build") install.installBuilt() if not EDVerbose.isVerboseDebug(): install.cleanSources() else: EDVerbose.ERROR("This installer program is not made to be imported, please just run it")
installHDF5.make("-j %i" % EDUtilsParallel.detectNumberOfCPUs()) except: EDVerbose.ERROR("Error in the 'make' step") try: installHDF5.make("install") except: EDVerbose.ERROR("Error in the 'make install' step") hdfPath = installHDF5.getDestinationDirectory() installHDF5.cleanSources() else: hdfPath = os.path.dirname(hdfPath) EDVerbose.DEBUG("Building H5Py with HDF5 library from %s " % (hdfPath)) install = EDUtilsLibraryInstaller(installDir, h5pyLibrary) install.checkPythonVersion() install.dependency("numpy", "20090405-Numpy-1.3") install.downloadLibrary() install.getArchiveName() install.unZipArchive() try: install.buildSources("--hdf5=%s" % hdfPath) except: EDVerbose.ERROR("Error in the building of %s" % (h5pyLibrary)) sys.exit(0) install.installBuilt() if not EDVerbose.isVerboseDebug(): install.cleanSources() else: EDVerbose.ERROR("This installer program is not made to be imported, please just run it")
if ("EDNA_HOME" in os.environ): if (os.environ["EDNA_HOME"] != strEdnaHome): print("Warning: EDNA_HOME redefined to %s" % strEdnaHome) os.environ["EDNA_HOME"] = strEdnaHome else: os.environ["EDNA_HOME"] = strEdnaHome sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src")) from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller from EDVerbose import EDVerbose if __name__ == "__main__": installDir = os.path.abspath(sys.argv[0]).split(os.sep)[-2] EDVerbose.screen("Building %s" % installDir) install = EDUtilsLibraryInstaller(installDir, strArchiveName) install.checkPythonVersion() install.downloadLibrary() install.dependency("numpy", "20090405-Numpy-1.3") install.unZipArchive() try: install.buildSources() except Exception: EDVerbose.ERROR("Error in the build") install.installBuilt() if not EDVerbose.isVerboseDebug(): install.cleanSources() else: EDVerbose.ERROR( "This installer program is not made to be imported, please just run it" )
EDVerbose.ERROR("Error in the 'make' step") try: installHDF5.make("install") except Exception: EDVerbose.ERROR("Error in the 'make install' step") hdfPath = installHDF5.getDestinationDirectory() installHDF5.cleanSources() else: hdfPath = os.path.dirname(hdfPath) EDVerbose.DEBUG("Building H5Py with HDF5 library from %s " % (hdfPath)) install = EDUtilsLibraryInstaller(installDir, h5pyLibrary) install.checkPythonVersion() install.dependency("numpy", "20090405-Numpy-1.3") install.downloadLibrary() install.getArchiveName() install.unZipArchive() try: install.buildSources("--hdf5=%s" % hdfPath) except Exception: EDVerbose.ERROR("Error in the building of %s" % (h5pyLibrary)) sys.exit(0) install.installBuilt() if not EDVerbose.isVerboseDebug(): install.cleanSources() else: EDVerbose.ERROR( "This installer program is not made to be imported, please just run it" )