if __name__ == "__main__": installDir = os.path.abspath(sys.argv[0]).split(os.sep)[-2] EDVerbose.screen("Building %s" % numpyLibrary) install = EDUtilsLibraryInstaller(installDir, numpyLibrary) install.checkPythonVersion() install.getArchitecture() install.downloadLibrary() install.getArchiveName() install.unZipArchive() install.buildSources() install.installBuilt() install.installSources() # Install f2py by hand !!!! install.installGeneric(None, os.path.join("numpy", "f2py", "src")) install.installGeneric(None, os.path.join("numpy", "core", "include")) #Install npymath by hand src = os.path.join(os.environ["EDNA_HOME"], "libraries", install.getLibraryDirectory(), install.getSourceDirectory(), "build", "temp%s" % EDUtilsPlatform.systemArchitecture[3:], "libnpymath.a") dest = os.path.join(install.getDestinationDirectory(), "numpy", "core", "lib")#"libnpymath.a") EDVerbose.DEBUG("cp %s %s" % (src, dest)) if not os.path.isdir(dest): os.makedirs(dest) shutil.move(src, dest) install.cleanSources() else: print("This installer program is not made to be imported, please just run it")
if __name__ == "__main__": installDir = os.path.abspath(sys.argv[0]).split(os.sep)[-2] EDVerbose.screen("Building %s" % numpyLibrary) install = EDUtilsLibraryInstaller(installDir, numpyLibrary) install.checkPythonVersion() install.getArchitecture() install.downloadLibrary() install.getArchiveName() install.unZipArchive() install.buildSources() install.installBuilt() install.installSources() # Install f2py by hand !!!! install.installGeneric(None, os.path.join("numpy", "f2py", "src")) install.installGeneric(None, os.path.join("numpy", "core", "include")) #Install npymath by hand src = os.path.join(os.environ["EDNA_HOME"], "libraries", install.getLibraryDirectory(), install.getSourceDirectory(), "build", "temp%s" % EDUtilsPlatform.systemArchitecture[3:], "libnpymath.a") dest = os.path.join(install.getDestinationDirectory(), "numpy", "core", "lib") #"libnpymath.a") EDVerbose.DEBUG("cp %s %s" % (src, dest)) if not os.path.isdir(dest): os.makedirs(dest) shutil.move(src, dest)