Files
tryton/setup.py
T

77 lines
2.2 KiB
Python
Raw Normal View History

2008-02-19 16:56:47 +01:00
#!/usr/bin/env python
2008-06-23 20:18:54 +02:00
#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms.
2008-02-19 16:56:47 +01:00
from distutils.core import setup
2008-02-20 13:06:49 +01:00
from distutils.command import sdist
2008-02-19 16:56:47 +01:00
import os
2008-02-20 13:06:49 +01:00
class mysdist(sdist.sdist):
def add_defaults(self):
sdist.sdist.add_defaults(self)
if self.distribution.has_pure_modules():
build_py = self.get_finalized_command('build_py')
data = []
for package in build_py.packages:
src_dir = build_py.get_package_dir(package)
data.extend(build_py.find_data_files(package, src_dir))
self.filelist.extend(data)
2008-02-19 16:56:47 +01:00
execfile(os.path.join('trytond', 'version.py'))
setup(name=PACKAGE,
version=VERSION,
description='Tryton server',
author='B2CK',
author_email='info@b2ck.com',
url=WEBSITE,
packages=[
'trytond',
'trytond.ir',
'trytond.ir.module',
'trytond.ir.ui',
'trytond.osv',
'trytond.report',
'trytond.res',
'trytond.tools',
'trytond.webdav',
'trytond.web_service',
'trytond.wizard',
'trytond.wkf_service',
'trytond.workflow',
],
package_data={
'trytond': ['init.sql'],
2008-07-04 18:43:43 +02:00
'trytond.ir': ['*.xml', '*.csv'],
2008-02-19 16:56:47 +01:00
'trytond.ir.module': ['*.xml'],
2008-06-17 13:22:43 +02:00
'trytond.ir.ui': ['*.xml', '*.rng', '*.rnc'],
2008-07-04 18:43:43 +02:00
'trytond.res': ['*.xml', '*.csv'],
'trytond.webdav': ['*.xml', '*.csv'],
'trytond.workflow': ['*.xml', '*.csv'],
2008-02-19 16:56:47 +01:00
},
2008-06-01 20:51:08 +02:00
data_files=[
('/etc', ['etc/trytond.conf']),
],
scripts=['bin/trytond'],
2008-02-19 16:56:47 +01:00
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License Version 2 (GPL-2)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
license=LICENSE,
#requires=[
2008-07-18 11:06:59 +02:00
# 'psycopg (>=2.0)',
2008-06-16 23:21:22 +02:00
# 'lxml',
# 'egenix-mx-base',
2008-07-18 11:06:59 +02:00
# 'relatorio (>=0.2.0),
#],
2008-02-20 13:06:49 +01:00
cmdclass={
'sdist': mysdist,
},
2008-02-19 16:56:47 +01:00
)