PACKAGE_VERSION = "0.5a4" |
PACKAGE_VERSION = "0.5a4" |
HAPPYDOC_IGNORE = [ |
HAPPYDOC_IGNORE = [ |
'-i','old', '-i','tests', '-i','setup', '-i','examples', |
'-i','old', '-i','tests', '-i','setup', '-i','examples', |
'-i', 'kjbuckets', '-i', 'ZConfig', |
|
] |
] |
|
|
scripts = ['scripts/peak'] |
scripts = ['scripts/peak'] |
), |
), |
Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap.pyx"]), |
Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap.pyx"]), |
Extension("peak.util._Code", ["src/peak/util/_Code.pyx"]), |
Extension("peak.util._Code", ["src/peak/util/_Code.pyx"]), |
Extension("protocols._speedups", ["src/protocols/_speedups.pyx"]), |
|
Extension("dispatch._speedups", ["src/dispatch/_speedups.pyx"]), |
|
Extension( |
Extension( |
"peak.persistence._persistence", ["src/peak/persistence/persistence.c"] |
"peak.persistence._persistence", ["src/peak/persistence/persistence.c"] |
), |
), |
] |
] |
|
|
try: |
|
# Check if Zope X3 is installed; we use zope.component |
|
# because we don't install it ourselves; if we used something we |
|
# install, we'd get a false positive if PEAK was previously installed. |
|
import zope.component |
|
zope_installed = True |
|
|
|
except ImportError: |
|
zope_installed = False |
|
|
|
|
|
have_uuidgen = False |
have_uuidgen = False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
execfile('src/setup/common.py') |
execfile('src/setup/common.py') |
|
|
features = { |
features = { |
'tests': Feature( |
'tests': Feature( |
"test modules", standard = True, |
"test modules", standard = True, |
'metamodels': Feature( |
'metamodels': Feature( |
"MOF/UML metamodels", standard = True, remove=['peak.metamodels'] |
"MOF/UML metamodels", standard = True, remove=['peak.metamodels'] |
), |
), |
'kjbuckets': Feature( |
|
"Aaron Watters' kjbuckets module (DEPRECATED!)", standard = False, |
|
ext_modules = [ |
|
Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]), |
|
] |
|
), |
|
'fcgiapp': Feature( |
|
"FastCGI support", standard = (os.name=='posix'), |
|
ext_modules = [ |
|
Extension("fcgiapp", [ |
|
"src/fcgiapp/fcgiappmodule.c", "src/fcgiapp/fcgiapp.c" |
|
]) |
|
] |
|
), |
|
'ZConfig': Feature( |
|
"ZConfig 2.0", standard = not zope_installed, remove = ['ZConfig'] |
|
), |
|
'uuidgen': Feature( |
'uuidgen': Feature( |
"UUID generation via BSD system libraries", |
"UUID generation via BSD system libraries", |
available = have_uuidgen, standard = have_uuidgen, |
available = have_uuidgen, standard = have_uuidgen, |
'*.ini', '*.html', '*.conf', '*.xml', '*.pwt', '*.dtd', '*.txt', |
'*.ini', '*.html', '*.conf', '*.xml', '*.pwt', '*.dtd', '*.txt', |
] |
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup( |
setup( |
name=PACKAGE_NAME, |
name=PACKAGE_NAME, |
version=PACKAGE_VERSION, |
version=PACKAGE_VERSION, |
packages = packages, |
packages = packages, |
cmdclass = SETUP_COMMANDS, |
cmdclass = SETUP_COMMANDS, |
|
|
|
install_requires = [ |
|
'PyProtocols >= 1.0a0dev-r2070', |
|
'wsgiref >= 0.0.1dev', |
|
'ZConfig > 2.0', |
|
], |
|
|
|
extras_require = { |
|
'FastCGI': ['fcgiapp >= 1.4'], |
|
}, |
|
|
package_data = { |
package_data = { |
'': ALL_EXTS, |
'': ALL_EXTS, |
'ZConfig': ['doc/schema.dtd'], |
|
'ZConfig.tests': ['input/*.xml', 'input/*.conf'], |
|
'ZConfig.tests.library.thing': ['extras/extras.xml'], |
|
'peak.metamodels': ['*.asdl'] |
'peak.metamodels': ['*.asdl'] |
}, |
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|