File: setup.py

package info (click to toggle)
ooo2dbk 2.1.0-1.1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,816 kB
  • ctags: 62
  • sloc: xml: 1,053; python: 869; makefile: 73
file content (36 lines) | stat: -rw-r--r-- 1,472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: setup.py 50228 2006-11-23 15:46:15Z lgodard $
"""setup install 

"""
from distutils.core import setup
import os
import platform

if platform.system() == 'Windows':
    #File for compiling ooo2dbk into executable on win32 with py2exe
    import py2exe
    setup(console=['ooo2dbk'])

elif platform.system() == 'Linux':
    os.system('patch -p1 <distrib.patch')
    setup(name='ooo2dbk',
        version='2.0',
        package_dir={'ooo2dbk': '.'},
        scripts=['ooo2dbk', 'ole2img.py'],
        data_files=[('/etc', ['ooo2dbk.xml',]),
                    ('/usr/share/xml/ooo2dbk', ['ooo2dbk-fo.xsl',
                                                'docbook-psmi.xsl',
                                                'ooo2dbk.xsl',
                                                'ooo2dbk.odf.xsl']),
                    ('/usr/share/doc/ooo2dbk', ['README.txt',
                                            'HISTORY',
                                            'COPYING',
                                            'CHANGES',
                                            'doc/ABOUT.txt',
                                            'doc/howto-use_psmi.txt',
                                            'doc/ooo2dbk.1',
                                            'doc/TODO.txt',
                                            'ooo/templateOOo2dbk-fr.stw',
                                            'ooo/templateOOo2dbk-en.stw',]),
                    ]
        )