|
|
# Base packages for installation |
# Base packages for installation |
scripts = ['scripts/peak'] |
scripts = ['scripts/peak'] |
|
modules = [] |
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.net', 'peak.running', |
'peak.naming', 'peak.naming.factories', 'peak.net', 'peak.running', |
data_files = [ |
data_files = [ |
('peak', ['src/peak/peak.ini']), |
('peak', ['src/peak/peak.ini']), |
('peak/web', ['src/peak/web/resource_defaults.ini']), |
('peak/web', ['src/peak/web/resource_defaults.ini']), |
|
('ZConfig/doc', ['src/ZConfig/doc/schema.dtd']), |
] + findDataFiles('src/peak/running', 1, '*.xml', '*.ini') |
] + findDataFiles('src/peak/running', 1, '*.xml', '*.ini') |
|
|
|
|
'peak.storage.tests', 'peak.util.tests', 'protocols.tests', |
'peak.storage.tests', 'peak.util.tests', 'protocols.tests', |
'peak.events.tests' |
'peak.events.tests' |
] |
] |
|
|
data_files += [ |
data_files += [ |
('peak/running/tests', ['src/peak/running/tests/test_cluster.txt']), |
('peak/running/tests', ['src/peak/running/tests/test_cluster.txt']), |
('peak/config/tests', ['src/peak/config/tests/test_links.ini']), |
('peak/config/tests', ['src/peak/config/tests/test_links.ini']), |
import sys |
import sys |
|
|
if sys.version_info < (2,3): |
if sys.version_info < (2,3): |
# Install datetime module if we're not on 2.3 |
# Install datetime and csv if we're not on 2.3 |
|
|
packages += ['datetime'] |
packages += ['datetime'] |
if include_tests: |
if include_tests: |
packages += ['datetime.tests'] |
packages += ['datetime.tests'] |
|
|
|
modules += ['csv'] |
|
extensions += [ |
|
Extension('_csv', ['src/_csv.c']) |
|
] |
|
|
import os |
import os |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
execfile('src/setup/common.py') |
execfile('src/setup/common.py') |
|
|
setup( |
setup( |
cmdclass = SETUP_COMMANDS, |
cmdclass = SETUP_COMMANDS, |
data_files = data_files, |
data_files = data_files, |
ext_modules = extensions, |
ext_modules = extensions, |
|
py_modules=modules, |
scripts = scripts, |
scripts = scripts, |
) |
) |
|
|
|
|
|
|
|
|
|
|