All Samples(2356) | Call(2284) | Derive(0) | Import(72)
Ensure that distributions matching `requirements` are activated `requirements` must be a string or a (possibly-nested) sequence thereof, specifying the distributions and versions required. The return value is a sequence of the distributions that needed to be activated to fulfill the requirements; all relevant distributions are included, even if they were already activated in this working set.
src/p/y/pypes-HEAD/core/trunk/examples/HelloWorldExample.py pypes(Download)
# load the pypes framework
from pkg_resources import require
require('pypes')
# import the Dataflow module
from pypes.pipeline import Dataflow
# import the Component Interface
src/p/y/pypes-HEAD/core/trunk/examples/DataFlowExample.py pypes(Download)
# load the pypes framework
from pkg_resources import require
require('pypes')
# import the Dataflow module
from pypes.pipeline import Dataflow
# import some built-in filters provided by the framework (for testing)
src/p/y/pypes-HEAD/core/trunk/examples/ComponentInterfaceExample.py pypes(Download)
# load the pypes framework
from pkg_resources import require
require('pypes')
import stackless
from pypes.pype import Pype
src/p/y/pypes-HEAD/core/trunk/examples/Beer.py pypes(Download)
# load the pypes framework
from pkg_resources import require
require('pypes')
import re
import time
src/p/y/py2app-0.5.2/py2app/util.py py2app(Download)
from pkg_resources import require
require("modulegraph", "altgraph", "macholib")
import os, sys, imp, zipfile, time
from modulegraph.find_modules import PY_SUFFIXES, C_SUFFIXES
from modulegraph.util import *
from modulegraph.modulegraph import os_listdir
src/p/y/py2app-0.5.2/py2app/build_app.py py2app(Download)
"""
Mac OS X .app build command for distutils
Originally (loosely) based on code from py2exe's build_exe.py by Thomas Heller.
"""
from pkg_resources import require
require("altgraph", "modulegraph", "macholib")
self.excludes.add('site')
if getattr(self.distribution, 'install_requires', None):
self.includes.add('pkg_resources')
self.eggs = require(self.distribution.install_requires)
dylib_excludes = fancy_split(self.dylib_excludes)
self.dylib_excludes = []
for fn in dylib_excludes:
src/t/o/ToscaWidgets-0.9.10/tw/mods/tg.py ToscaWidgets(Download)
from pkg_resources import require, VersionConflict
import os, logging
# TurboGears-1.0 uses CherryPy-2.3 while TurboGears-1.5 uses CherryPy-3.1.
# CherryPy-2.3 uses Filters while CherryPy-3.1 uses Tools. We put the CherryPy
# specific code in separate files which makes it possible for CherryPy users
# that are not using TurboGears to use them directly.
try:
require("TurboGears>=1.0, <=1.5")
import cp2 as cp
default_view = 'kid'
except VersionConflict:
require("TurboGears>=1.5a1dev, <=2.0")
src/t/o/ToscaWidgets-0.9.10/tw/paste_template.py ToscaWidgets(Download)
import os
import datetime
from pkg_resources import get_distribution, require
require("PasteScript")
from paste.script.templates import Template, var
class ToscaWidgetsTemplate(Template):
src/p/o/polinax-HEAD/libs/external_libs/simplejson-1.9.1/scripts/prof.py polinax(Download)
#!/usr/bin/env python2.4
from pkg_resources import require
require('simplejson')
import profile
from simplejson.tests.test_pass1 import test_parse
src/e/n/envbuilder-0.4.0.b-1/envbuilder/config.py envbuilder(Download)
except ImportError:
pass
from pkg_resources import resource_filename, require
from envbuilder.sh import sh, terminate, notify
def __init__(self, filepath=None, config=None, name=None, args=None):
# We don't want to ensure that configobj is loaded until we
# actually want to use it
require('configobj')
self.filepath = filepath
assert (filepath or config), "Either filepath or config must be specified!"
self.args = args
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next