Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2488)  |  Call(1766)  |  Derive(6)  |  Import(716)
Version numbering for anarchists and software realists.
Implements the standard interface for version number classes as
described above.  A version number consists of a series of numbers,
separated by either periods or strings of letters.  When comparing
version numbers, the numeric components will be compared
numerically, and the alphabetic components lexically.  The following
are all valid version numbers, in no particular order:

    1.5.1
    1.5.2b2(more...)

src/x/b/xbob.example.faceverify-1.0.0/bootstrap.py   xbob.example.faceverify(Download)
 
  try:
    from distutils.version import LooseVersion
    package = pkg_resources.require('setuptools')[0]
    v = LooseVersion(package.version)
    if v < LooseVersion('0.7'):

src/x/b/xbob.example.lda-1.0.3/bootstrap.py   xbob.example.lda(Download)
 
  try:
    from distutils.version import LooseVersion
    package = pkg_resources.require('setuptools')[0]
    v = LooseVersion(package.version)
    if v < LooseVersion('0.7'):

src/x/b/xbob.paper.example-0.2.0/bootstrap.py   xbob.paper.example(Download)
 
  try:
    from distutils.version import LooseVersion
    package = pkg_resources.require('setuptools')[0]
    v = LooseVersion(package.version)
    if v < LooseVersion('0.7'):

src/s/i/simpleauth-0.1.4/example/lib/oauth2/_version.py   simpleauth(Download)
except (ImportError, ValueError):
    # Maybe there is no pyutil installed.
    from distutils.version import LooseVersion as distutils_Version
    __version__ = distutils_Version(verstr)
 

src/s/i/simpleauth-HEAD/example/lib/oauth2/_version.py   simpleauth(Download)
except (ImportError, ValueError):
    # Maybe there is no pyutil installed.
    from distutils.version import LooseVersion as distutils_Version
    __version__ = distutils_Version(verstr)
 

src/e/a/easybuild-easyblocks-1.12.1/easybuild/easyblocks/q/quantumespresso.py   easybuild-easyblocks(Download)
import shutil
import sys
from distutils.version import LooseVersion
 
import easybuild.tools.environment as env
 
        # patch default make.sys for wannier
        if LooseVersion(self.version) >= LooseVersion("5"):
            fn = os.path.join(self.cfg['start_dir'], 'install', 'make_wannier90.sys')
        else:
        if 'neb' in self.cfg['makeopts'] or 'pwall' in self.cfg['makeopts'] or \
           'all' in self.cfg['makeopts']:
            if LooseVersion(self.version) > LooseVersion("5"):
                bins.extend(["neb.x", "path_interpolation.x"])
 

src/e/a/easybuild-easyblocks-HEAD/easybuild/easyblocks/q/quantumespresso.py   easybuild-easyblocks(Download)
import shutil
import sys
from distutils.version import LooseVersion
 
import easybuild.tools.environment as env
 
        # patch default make.sys for wannier
        if LooseVersion(self.version) >= LooseVersion("5"):
            fn = os.path.join(self.cfg['start_dir'], 'install', 'make_wannier90.sys')
        else:
        if 'neb' in self.cfg['makeopts'] or 'pwall' in self.cfg['makeopts'] or \
           'all' in self.cfg['makeopts']:
            if LooseVersion(self.version) > LooseVersion("5"):
                bins.extend(["neb.x", "path_interpolation.x"])
 

src/d/j/django-html5-appcache-HEAD/html5_appcache/settings.py   django-html5-appcache(Download)
# -*- coding: utf-8 -*-
from distutils.version import LooseVersion
 
import django
from django.conf import settings
 
try:
    import cms
    DJANGOCMS = True
    DJANGOCMS_2_3 = LooseVersion(cms.__version__) < LooseVersion('2.4')
    DJANGOCMS = True
    DJANGOCMS_2_3 = LooseVersion(cms.__version__) < LooseVersion('2.4')
    DJANGOCMS_2_4 = LooseVersion(cms.__version__) < LooseVersion('3.0')
    DJANGOCMS_3_0 = LooseVersion(cms.__version__) < LooseVersion('3.1')
except ImportError:

src/e/a/easybuild-easyblocks-1.12.1/easybuild/easyblocks/i/ifort.py   easybuild-easyblocks(Download)
"""
 
from distutils.version import LooseVersion
 
from easybuild.easyblocks.generic.intelbase import IntelBase
        binprefix = "bin/intel64"
        libprefix = "lib/intel64/lib"
        if LooseVersion(self.version) >= LooseVersion("2011"):
            if LooseVersion(self.version) <= LooseVersion("2011.3.174"):
                binprefix = "bin"

src/e/a/easybuild-easyblocks-HEAD/easybuild/easyblocks/i/ifort.py   easybuild-easyblocks(Download)
"""
 
from distutils.version import LooseVersion
 
from easybuild.easyblocks.generic.intelbase import IntelBase
        binprefix = "bin/intel64"
        libprefix = "lib/intel64/lib"
        if LooseVersion(self.version) >= LooseVersion("2011"):
            if LooseVersion(self.version) <= LooseVersion("2011.3.174"):
                binprefix = "bin"

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next