|
|
include_tests = True # edit this to stop installation of test modules |
include_tests = True # edit this to stop installation of test modules |
include_metamodels = True # edit this to stop installation of MOF, UML, etc. |
include_metamodels = True # edit this to stop installation of MOF, UML, etc. |
|
include_fcgiapp = True # edit this to stop installation of 'fcgiapp' |
|
|
# Metadata |
# Metadata |
|
|
PACKAGE_NAME = "PEAK" |
PACKAGE_NAME = "PEAK" |
PACKAGE_VERSION = "0.5a1" |
PACKAGE_VERSION = "0.5a1" |
|
|
HAPPYDOC_IGNORE = [ |
HAPPYDOC_IGNORE = [ |
'-i', 'examples', '-i', 'old', '-i', 'tests', |
'-i', 'examples', '-i', 'old', '-i', 'tests', '-i', 'setup', |
|
'-i', 'kjbuckets', '-i', 'ZConfig', '-i', 'persistence', |
] |
] |
|
|
|
|
# Base packages for installation |
# Base packages for installation |
|
scripts = ['scripts/peak'] |
|
|
packages = [ |
packages = [ |
'peak', 'peak.api', 'peak.binding', 'peak.config', 'peak.model', |
'peak', 'peak.api', 'peak.binding', 'peak.config', 'peak.model', |
'peak.naming', 'peak.naming.factories', 'peak.running', |
'peak.naming', 'peak.naming.factories', 'peak.running', |
'peak.storage', 'peak.util', |
'peak.storage', 'peak.util', 'protocols', |
] |
] |
|
|
extensions = [ |
extensions = [ |
Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]), |
Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]), |
] |
] |
|
|
|
|
# Base data files |
# Base data files |
|
|
data_files = [ |
data_files = [ |
if not zope_installed: |
if not zope_installed: |
|
|
packages += [ |
packages += [ |
'zope', 'zope.interface', 'zope.interface.common', |
|
'persistence', 'ZConfig', |
'persistence', 'ZConfig', |
] |
] |
|
|
|
|
if include_tests: |
if include_tests: |
packages += [ |
packages += [ |
'zope.interface.tests', 'persistence.tests', 'ZConfig.tests', |
'persistence.tests', 'ZConfig.tests', |
'zope.interface.common.tests', |
|
] |
] |
|
|
data_files += findDataFiles('src/ZConfig/tests', 1, '*.xml', '*.txt', '*.conf') |
data_files += findDataFiles('src/ZConfig/tests', 1, '*.xml', '*.txt', '*.conf') |
|
|
|
|
|
|
|
|
|
|
import os |
import os |
|
|
if os.name=='posix': |
if os.name=='posix': |
|
|
# install 'peak' script on Unix-like OS's (including cygwin) |
# install 'fcgiapp' module on posix systems |
scripts = ['scripts/peak'] |
if include_fcgiapp: |
|
extensions += [ |
|
Extension("fcgiapp", [ |
|
"src/fcgiapp/fcgiappmodule.c", "src/fcgiapp/fcgiapp.c" |
|
]) |
|
] |
|
|
else: |
|
# Nothing to see here, move along... |
|
scripts = [] |
|
|
|
|
|
execfile('src/setup/common.py') |
execfile('src/setup/common.py') |
version=PACKAGE_VERSION, |
version=PACKAGE_VERSION, |
|
|
description="The Python Enterprise Application Kit", |
description="The Python Enterprise Application Kit", |
|
|
author="Phillip J. Eby", |
author="Phillip J. Eby", |
author_email="transwarp@eby-sarna.com", |
author_email="transwarp@eby-sarna.com", |
|
|
url="http://peak.telecommunity.com/", |
url="http://peak.telecommunity.com/", |
|
|
license="PSF or ZPL", |
license="PSF or ZPL", |
platforms=['UNIX','Windows'], |
platforms=['UNIX','Windows'], |
|
|
packages = packages, |
|
package_dir = {'':'src'}, |
package_dir = {'':'src'}, |
|
packages = packages, |
cmdclass = SETUP_COMMANDS, |
cmdclass = SETUP_COMMANDS, |
|
|
data_files = data_files, |
data_files = data_files, |
ext_modules = extensions, |
ext_modules = extensions, |
scripts = scripts, |
scripts = scripts, |
|
|
|
|
|
|
|
|
|
|
|
|