예제 #1
0
    from Scientific import __version__ as scientific_version
    if scientific_version[-2:] == 'hg':
        scientific_version = scientific_version[:-2]
    scientific_version = scientific_version.split('.')
    scientific_ok = int(scientific_version[0]) >= 2 and \
                    int(scientific_version[1]) >= 6
except ImportError:
    scientific_ok = False
if not scientific_ok:
    print "AlGDock needs ScientificPython 2.6 or higher"
    raise SystemExit

# Check that we have MMTK 2.6 or higher
try:
    from MMTK import __version__ as mmtk_version
    mmtk_version = mmtk_version.split('.')
    mmtk_ok = int(mmtk_version[0]) >= 2 and \
              int(mmtk_version[1]) >= 6
except ImportError:
    mmtk_ok = False
if not mmtk_ok:
    print "AlGDock requires MMTK version 2.6 or higher"
    raise SystemExit

# Configure compile arguments and include directories
compile_args = []
include_dirs = [
    os.path.join(findPath(search_paths['MMTK']), 'Include'),
    os.path.join(findPath(search_paths['MMTK']), 'include',
                 'python%d.%d' % sys.version_info[:2], 'MMTK')
]
예제 #2
0
파일: setup.py 프로젝트: Mamie/AlGDock
    from Scientific import __version__ as scientific_version
    if scientific_version[-2:] == 'hg':
        scientific_version = scientific_version[:-2]
    scientific_version = scientific_version.split('.')
    scientific_ok = int(scientific_version[0]) >= 2 and \
                    int(scientific_version[1]) >= 6
except ImportError:
    scientific_ok = False
if not scientific_ok:
    print "AlGDock needs ScientificPython 2.6 or higher"
    raise SystemExit

# Check that we have MMTK 2.6 or higher
try:
  from MMTK import __version__ as mmtk_version
  mmtk_version = mmtk_version.split('.')
  mmtk_ok = int(mmtk_version[0]) >= 2 and \
            int(mmtk_version[1]) >= 6
except ImportError:
  mmtk_ok = False
if not mmtk_ok:
  print "AlGDock requires MMTK version 2.6 or higher"
  raise SystemExit

# Configure compile arguments and include directories 
compile_args = []
include_dirs = ['Include',
                os.path.join(findPath(search_paths['MMTK']),'Include'),
                os.path.join(findPath(search_paths['MMTK']),'include',
                             'python%d.%d'%sys.version_info[:2],'MMTK')]
예제 #3
0
파일: setup.py 프로젝트: homsun/AlGDock
    if scientific_version[-2:] == "hg":
        scientific_version = scientific_version[:-2]
    scientific_version = scientific_version.split(".")
    scientific_ok = int(scientific_version[0]) >= 2 and int(scientific_version[1]) >= 6
except ImportError:
    scientific_ok = False
if not scientific_ok:
    print "AlGDock needs ScientificPython 2.6 or higher"
    raise SystemExit

# Check that we have MMTK 2.6 or higher
try:
    from MMTK import __version__ as mmtk_version

    mmtk_version = mmtk_version.split(".")
    mmtk_ok = int(mmtk_version[0]) >= 2 and int(mmtk_version[1]) >= 6
except ImportError:
    mmtk_ok = False
if not mmtk_ok:
    print "AlGDock requires MMTK version 2.6 or higher"
    raise SystemExit

# Configure compile arguments and include directories
compile_args = []
include_dirs = [
    os.path.join(findPath(search_paths["MMTK"]), "Include"),
    os.path.join(findPath(search_paths["MMTK"]), "include", "python%d.%d" % sys.version_info[:2], "MMTK"),
]

from Scientific import N