|
|
"""Distutils setup file""" |
"""Distutils setup file""" |
|
|
from distutils.core import setup, Command |
from distutils.core import setup, Command, Extension |
from distutils.command.install_data import install_data |
from distutils.command.install_data import install_data |
from distutils.command.sdist import sdist as old_sdist |
from distutils.command.sdist import sdist as old_sdist |
import sys |
import sys |
def finalize_options(self): |
def finalize_options(self): |
|
|
if self.test_module is None: |
if self.test_module is None: |
self.test_module = 'peak.tests' |
self.test_module = 'peak.api.tests' |
|
|
self.test_args = [self.test_module+'.test_suite'] |
self.test_args = [self.test_module+'.test_suite'] |
|
|
'peak.naming', 'peak.naming.factories', 'peak.util', 'peak.running', |
'peak.naming', 'peak.naming.factories', 'peak.util', 'peak.running', |
'peak.config', 'peak.storage', |
'peak.config', 'peak.storage', |
|
|
'peak.binding.tests', |
'peak.binding.tests', 'peak.config.tests', |
'peak.metamodels.tests', 'peak.util.tests', 'peak.tests', |
'peak.metamodels.tests', 'peak.util.tests', 'peak.tests', |
|
|
'Interface', 'Interface.Common', 'Interface.tests', |
'Interface', 'Interface.Common', 'Interface.tests', |
|
|
package_dir = {'':'src'}, |
package_dir = {'':'src'}, |
|
|
|
ext_modules = [Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"])], |
|
|
cmdclass = { |
cmdclass = { |
'install_data': install_data, 'sdist': sdist, 'happy': happy, |
'install_data': install_data, 'sdist': sdist, 'happy': happy, |
'test': test, |
'test': test, 'sdist_nodoc': old_sdist, |
}, |
}, |
|
|
data_files = [ |
data_files = [ |