Files
tryton/setup.py
T

119 lines
3.7 KiB
Python
Raw Normal View History

2008-02-19 17:55:24 +01:00
#!/usr/bin/env python
2008-09-30 10:19:09 +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 17:55:24 +01:00
2008-09-30 10:19:09 +02:00
from setuptools import setup, find_packages
2008-02-19 17:55:24 +01:00
import os
2008-06-13 14:19:51 +02:00
import glob
import sys
args = {}
2008-07-04 00:06:56 +02:00
try:
from babel.messages import frontend as babel
args['cmdclass'] = {
'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog,
}
args['message_extractors'] = {
'tryton': [
('**.py', 'python', None),
],
}
except ImportError:
pass
2008-06-13 14:19:51 +02:00
if os.name == 'nt':
import py2exe
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
if os.path.basename(pathname).lower() in ("msvcp71.dll", "dwmapi.dll"):
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
2008-06-13 14:19:51 +02:00
args['windows'] = [{
'script': os.path.join('bin', 'tryton'),
2008-11-16 18:53:23 +01:00
'icon_resources': [(1, os.path.join('share', 'pixmaps', 'tryton.ico'))],
2008-06-13 14:19:51 +02:00
}]
args['options'] = {
'py2exe': {
'optimize': 0,
2008-06-14 12:36:17 +02:00
'bundle_files': 3, #don't bundle because gtk doesn't support it
2008-06-13 14:19:51 +02:00
'packages': [
'encodings',
'gtk',
'pytz',
],
'includes': 'pango,atk,gobject,cairo,pangocairo',
'dll_excludes': [
'iconv.dll',
'intl.dll',
'libatk-1.0-0.dll',
'libgdk_pixbuf-2.0-0.dll',
'libgdk-win32-2.0-0.dll',
'libglib-2.0-0.dll',
'libgmodule-2.0-0.dll',
'libgobject-2.0-0.dll',
'libgthread-2.0-0.dll',
'libgtk-win32-2.0-0.dll',
'libpango-1.0-0.dll',
'libpangowin32-1.0-0.dll',
2008-11-09 15:33:46 +01:00
'libcairo-2.dll',
'libfontconfig-1.dll',
'libfreetype-6.dll',
'libgdkglext-win32-1.0.0.dll',
'libglade-2.0-0.dll',
'libgtkglext-win32-1.0-0.dll',
'libpangocairo-1.0-0.dll',
'libpangoft2-1.0-0.dll',
'libxml2.dll',
'zlib1.dll',
2008-06-13 14:19:51 +02:00
],
}
}
args['zipfile'] = None
2008-02-19 17:55:24 +01:00
execfile(os.path.join('tryton', 'version.py'))
setup(name=PACKAGE,
version=VERSION,
description='Tryton client',
author='B2CK',
author_email='info@b2ck.com',
url=WEBSITE,
2008-09-30 10:19:09 +02:00
packages=find_packages(),
2008-02-19 17:55:24 +01:00
data_files=[
2008-06-13 14:19:51 +02:00
('share/pixmaps', glob.glob('share/pixmaps/*.png') + \
glob.glob('share/pixmaps/*.svg')),
2008-07-04 00:06:56 +02:00
('share/locale/fr_FR/LC_MESSAGES', glob.glob('share/locale/fr_FR/LC_MESSAGES/*.mo')),
2008-09-30 10:19:09 +02:00
('share/locale/de_DE/LC_MESSAGES', glob.glob('share/locale/de_DE/LC_MESSAGES/*.mo')),
2008-10-31 10:50:36 +01:00
('share/locale/es_ES/LC_MESSAGES', glob.glob('share/locale/es_ES/LC_MESSAGES/*.mo')),
2008-02-19 17:55:24 +01:00
],
scripts=['bin/tryton'],
2008-02-19 17:55:24 +01:00
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: GTK',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License Version 2 (GPL-2)',
'Operating System :: OS Independent',
2008-10-15 00:40:15 +02:00
'Natural Language :: English',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Spanish',
2008-02-19 17:55:24 +01:00
'Programming Language :: Python',
'Topic :: Office/Business',
],
license=LICENSE,
2008-09-30 10:19:09 +02:00
install_requires=[
"pygtk >= 2.0",
"egenix-mx-base",
],
2008-06-13 14:19:51 +02:00
**args
2008-02-19 17:55:24 +01:00
)