• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(92)  |  Call(52)  |  Derive(0)  |  Import(40)
A subset of the distribution that can be excluded if unneeded/wanted

Features are created using these keyword arguments:

  'description' -- a short, human readable description of the feature, to
     be used in error messages, and option help messages.

  'standard' -- if true, the feature is included by default if it is
     available on the current system.  Otherwise, the feature is only
     included if requested via a command line '--with-X' option, or if
     another included feature requires it.  The default setting is 'False'.

  'available' -- if true, the feature is available for installation on the
     current system.  The default setting is 'True'.

  'optional' -- if true, the feature's inclusion can be controlled from the
     command line, using the '--with-X' or '--without-X' options.  If
     false, the feature's inclusion status is determined automatically,
     based on 'availabile', 'standard', and whether any other feature
     requires it.  The default setting is 'True'.

  'require_features' -- a string or sequence of strings naming features
     that should also be included if this feature is included.  Defaults to
     empty list.  May also contain 'Require' objects that should be
     added/removed from the distribution.

  'remove' -- a string or list of strings naming packages to be removed
     from the distribution if this feature is *not* included.  If the
     feature *is* included, this argument is ignored.  This argument exists
     to support removing features that "crosscut" a distribution, such as
     defining a 'tests' feature that removes all the 'tests' subpackages
     provided by other features.  The default for this argument is an empty
     list.  (Note: the named package(s) or modules must exist in the base
     distribution when the 'setup()' function is initially called.)

  other keywords -- any other keyword arguments are saved, and passed to
     the distribution's 'include()' and 'exclude()' methods when the
     feature is included or excluded, respectively.  So, for example, you
     could pass 'packages=["a","b"]' to cause packages 'a' and 'b' to be
     added or removed from the distribution as appropriate.

A feature must include at least one 'requires', 'remove', or other
keyword argument.  Otherwise, it can't affect the distribution in any way.
Note also that you can subclass 'Feature' to create your own specialized
feature types that modify the distribution in other ways when included or
excluded.  See the docstrings for the various methods here for more detail.
Aside from the methods, the only feature attributes that distributions look
at are 'description' and 'optional'.

src/p/y/PyTAPS-1.0rc2/setup.py   PyTAPS(Download)
import ez_setup
ez_setup.use_setuptools()
 
from setuptools import setup, Command, Extension, Feature
from setuptools import Distribution as _Distribution
from distutils.errors import DistutilsOptionError
from distutils.command.build_ext import build_ext
                  sources = ['iBase.c'],
                  )
 
iMesh = Feature('iMesh interface',
                standard = True,
                ext_modules = [Extension(
                            'itaps.iMesh',
                test_suites=['test.imesh'],
                )
 
iGeom = Feature('iGeom interface',
                standard = True,
                ext_modules = [Extension(
                            'itaps.iGeom',
                test_suites=['test.igeom'],
                )
 
iRel  = Feature('iRel interface',
                standard = True,
                require_features = ['iMesh', 'iGeom'],
                ext_modules = [Extension(

src/p/y/pypentago-HEAD/src/setup.py   pypentago(Download)
import imp
import optparse
 
from setuptools import setup, Extension, Distribution, Feature
from distutils import sysconfig
 
VERSION = '0.1.0'
    packages=['pypentago', 'pypentago.network'],
    py_modules=['actions', 'depr'],
    features=dict(
        client=Feature('GUI client',
            standard=True,
            entry_points={
                'gui_scripts': [
            packages=['pypentago.client', 'pypentago.client.interface'],
            install_requires=depends(['PyQt4'])
        ),
        server=Feature('network server',
            standard=True,
            entry_points={
                'console_scripts': [
                    'pypentagod = pypentago.server.main:main'
                ],
            },
            packages=['pypentago.server', 'pypentago.server.db'],
            install_requires=depends(['sqlalchemy'])
        ),
        speedups=Feature('optional C speed-enhancements',

src/a/m/AmFast-0.5.1/setup.py   AmFast(Download)
import os
 
from ez_setup import use_setuptools
use_setuptools()
 
from setuptools import setup, Feature
 
from distutils.core import setup, Extension
from distutils.command.build_ext import build_ext
 
extensions = Feature(
    "AMF encoder/decoder C extension.",

src/r/e/reporter-lib-HEAD/packages/zope.interface/setup.py   reporter-lib(Download)
import os, sys
 
try:
    from setuptools import setup, Extension, Feature
except ImportError:
    # do we need to support plain distutils for building when even
    # the package itself requires setuptools for installing?
        extra = {}
 
else:
    codeoptimization = Feature("Optional code optimizations",
                               standard = True,
                               ext_modules = [Extension(
                                             "zope.interface._zope_interface_coptimizations",

src/p/o/polinax-HEAD/libs/external_libs/simplejson-1.9.1/setup.py   polinax(Download)
    # use the min_version kwarg and will bail with TypeError
    use_setuptools()
 
from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError
         print '*'*70
 
speedups = Feature(
    "options C speed-enhancement modules",
    standard=True,
    ext_modules = [
        Extension("simplejson._speedups", ["simplejson/_speedups.c"]),

src/p/y/pyutf8-HEAD/setup.py   pyutf8(Download)
except ImportError:
    pass
 
from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError
 
 
speedups = Feature(
    "optional C speed-enhancement module",
    standard=True,
    ext_modules = [
        Extension("pyutf8._speedups", ["pyutf8/_speedups.c"]),

src/s/e/secret-squirrel-lib-HEAD/packages/jinja2/setup.py   secret-squirrel-lib(Download)
import os
import sys
 
from setuptools import setup, Extension, Feature
from distutils.command.build_ext import build_ext
 
debugsupport = Feature(
    'optional C debug support',

src/e/x/experimental.catalogqueryplan-3.0.2/setup.py   experimental.catalogqueryplan(Download)
from os.path import join
from setuptools import setup, find_packages, Extension, Feature
 
version = '3.0.2'
 
base = join('experimental', 'catalogqueryplan')
 
codeoptimization = Feature("Optional code optimizations",

src/b/a/badger-lib-HEAD/packages/simplejson/setup.py   badger-lib(Download)
    # use the min_version kwarg and will bail with TypeError
    use_setuptools()
 
from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError
 
 
speedups = Feature(
    "options C speed-enhancement modules",
    standard=True,
    ext_modules = [
        Extension("simplejson._speedups", ["simplejson/_speedups.c"]),

src/p/y/pyutf8-0.1.1/setup.py   pyutf8(Download)
except ImportError:
    pass
 
from setuptools import setup, find_packages, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
    DistutilsPlatformError
 
 
speedups = Feature(
    "optional C speed-enhancement module",
    standard=True,
    ext_modules = [
        Extension("pyutf8._speedups", ["pyutf8/_speedups.c"]),

  1 | 2 | 3 | 4  Next