當前位置: 首頁>>代碼示例>>Python>>正文


Python EDUtilsLibraryInstaller.getArchitecture方法代碼示例

本文整理匯總了Python中EDUtilsLibraryInstaller.EDUtilsLibraryInstaller.getArchitecture方法的典型用法代碼示例。如果您正苦於以下問題:Python EDUtilsLibraryInstaller.getArchitecture方法的具體用法?Python EDUtilsLibraryInstaller.getArchitecture怎麽用?Python EDUtilsLibraryInstaller.getArchitecture使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在EDUtilsLibraryInstaller.EDUtilsLibraryInstaller的用法示例。


在下文中一共展示了EDUtilsLibraryInstaller.getArchitecture方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: EDUtilsLibraryInstaller

# 需要導入模塊: from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller [as 別名]
# 或者: from EDUtilsLibraryInstaller.EDUtilsLibraryInstaller import getArchitecture [as 別名]
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
from EDUtilsPlatform            import EDUtilsPlatform

numpyLibrary = "numpy-1.5.1.tar.gz"

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")
開發者ID:antolinos,項目名稱:edna,代碼行數:33,代碼來源:install.py

示例2: and

# 需要導入模塊: from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller [as 別名]
# 或者: from EDUtilsLibraryInstaller.EDUtilsLibraryInstaller import getArchitecture [as 別名]
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
__author__ = "Jerome Kieffer"
__contact__ = "[email protected]"
__license__ = "GPLv3+"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"

import os, sys
from EDTestSuite import EDTestSuite
from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller, installLibrary

################################################################################
# AutoBuilder for Numpy, PIL and Fabio
################################################################################
architecture = EDUtilsLibraryInstaller.getArchitecture()
fabioPath = os.path.join(os.environ["EDNA_HOME"], "libraries", "Fabio-r5080", architecture)
imagingPath = os.path.join(os.environ["EDNA_HOME"], "libraries", "20091115-PIL-1.1.7", architecture)
numpyPath = os.path.join(os.environ["EDNA_HOME"], "libraries", "20090405-Numpy-1.3", architecture)


###############################################################################
# Import the right version of PIL
###############################################################################
pydictModulesBeforePIL = sys.modules.copy()

try:
    import Image
except Exception:
    if os.path.isdir(imagingPath) and (imagingPath not in sys.path):
        sys.path.insert(1, imagingPath)
開發者ID:gbourgh,項目名稱:edna,代碼行數:33,代碼來源:EDTestSuitePluginExecutePyarchThumbnailv10.py

示例3: EDUtilsLibraryInstaller

# 需要導入模塊: from EDUtilsLibraryInstaller import EDUtilsLibraryInstaller [as 別名]
# 或者: from EDUtilsLibraryInstaller.EDUtilsLibraryInstaller import getArchitecture [as 別名]
hdf5Library = "hdf5-1.8.5.tar.bz2"
laFile = "libhdf5.la"

EDVerbose.DEBUG("h5pyLibrary = " + h5pyLibrary)
EDVerbose.DEBUG("hdf5Library = " + hdf5Library)
EDVerbose.DEBUG("laFile = " + laFile)

if __name__ == "__main__":
    installDir = os.path.abspath(sys.argv[0]).split(os.sep)[-2]
    EDVerbose.screen("Building %s" % installDir)
    installHDF5 = EDUtilsLibraryInstaller(installDir, hdf5Library)
    hdfPath = installHDF5.searchCLib(laFile)
    if hdfPath is None:
        print
        installHDF5.checkPythonVersion()
        installHDF5.getArchitecture()
        installHDF5.downloadLibrary()
        installHDF5.unZipArchive()
        pthreadPath = installHDF5.searchCLib("libpthread.so")
        EDVerbose.DEBUG("Libpthread found in %s" % pthreadPath)
        if pthreadPath is None:
            try:
                installHDF5.configure("--prefix=%s" % (installHDF5.getDestinationDirectory()))
            except:
                EDVerbose.ERROR("Error in the configure step, no pthread")
        else:
            try:
                installHDF5.configure("--prefix=%s --enable-threadsafe --with-pthread=%s" % (installHDF5.getDestinationDirectory(), pthreadPath))
            except:
                EDVerbose.ERROR("Error in the configure step, with pthread")
        try:
開發者ID:olofsvensson,項目名稱:edna-libraries,代碼行數:33,代碼來源:install.py


注:本文中的EDUtilsLibraryInstaller.EDUtilsLibraryInstaller.getArchitecture方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。