|
|
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.5a0" |
PACKAGE_VERSION = "0.5a2" |
|
|
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.running.tools', 'peak.running.tools.n2', 'peak.security', |
|
'peak.storage', 'peak.util', 'peak.web', 'protocols', |
] |
] |
|
|
extensions = [ |
extensions = [ |
), |
), |
Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap" + EXT]), |
Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap" + EXT]), |
Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]), |
Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]), |
|
Extension("protocols._speedups", ["src/protocols/_speedups" + EXT]), |
] |
] |
|
|
|
|
# Base data files |
# Base data files |
|
|
data_files = [ |
data_files = [ |
('peak', ['src/peak/peak.ini']), |
('peak', ['src/peak/peak.ini']), |
] |
] + findDataFiles('src/peak/running', 1, '*.xml') |
|
|
|
|
if include_tests: |
if include_tests: |
packages += [ |
packages += [ |
'peak.tests', 'peak.binding.tests', 'peak.config.tests', |
'peak.tests', 'peak.binding.tests', 'peak.config.tests', |
'peak.model.tests', 'peak.naming.tests', 'peak.running.tests', |
'peak.model.tests', 'peak.naming.tests', 'peak.running.tests', |
'peak.storage.tests', 'peak.util.tests', |
'peak.security.tests', |
|
'peak.storage.tests', 'peak.util.tests', 'protocols.tests', |
] |
] |
|
|
data_files += [ |
data_files += [ |
|
|
packages += [ |
packages += [ |
'peak.metamodels', |
'peak.metamodels', |
'peak.metamodels.UML13', |
'peak.metamodels.UML13', 'peak.metamodels.UML14', |
'peak.metamodels.UML13.model', |
'peak.metamodels.UML13.model', 'peak.metamodels.UML14.model', |
'peak.metamodels.UML13.model.Foundation', |
'peak.metamodels.UML13.model.Foundation', |
'peak.metamodels.UML13.model.Behavioral_Elements', |
'peak.metamodels.UML13.model.Behavioral_Elements', |
] |
] |
|
|
packages += [ 'peak.metamodels.tests' ] |
packages += [ 'peak.metamodels.tests' ] |
|
|
data_files += [ |
data_files += findDataFiles('src/peak/metamodels/tests', 1, '*.xml') |
('peak/metamodels/tests', |
|
['src/peak/metamodels/tests/MetaMeta.xml'] |
|
), |
|
] |
|
|
|
|
|
try: |
try: |
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 sys |
|
|
|
if sys.version_info < (2,3): |
|
# Install datetime module if we're not on 2.3 |
|
packages += ['datetime'] |
|
if include_tests: |
|
packages += ['datetime.tests'] |
|
|
|
|
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, |
) |
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|