Example #1
0
# Check for Cython
try:
    from Cython.Distutils import build_ext
    cython_ok = True
except ImportError:
    cython_ok = False
if not cython_ok:
    print 'AlGDock requires Cython'
    raise SystemExit

# Check that we have Scientific 2.6 or higher
try:
    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:
Example #2
0
# Check for Cython
try:
  from Cython.Distutils import build_ext
  cython_ok = True  
except ImportError:
  cython_ok = False
if not cython_ok:
  print 'AlGDock requires Cython'
  raise SystemExit

# Check that we have Scientific 2.6 or higher
try:
    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:
Example #3
0
    from Cython.Distutils import build_ext

    cython_ok = True
except ImportError:
    cython_ok = False
if not cython_ok:
    print "AlGDock requires Cython"
    raise SystemExit

# Check that we have Scientific 2.6 or higher
try:
    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