forked from mikemaccana/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (24 loc) · 995 Bytes
/
setup.py
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
#!/usr/bin/env python
from distutils.core import setup
from glob import glob
# Make data go into site-packages (http://tinyurl.com/site-pkg)
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
setup(name='docx',
version='0.2.0',
requires=['lxml'],
description='The docx module creates, reads and writes Microsoft Office Word 2007 docx files',
author='Mike MacCana',
author_email='[email protected]',
maintainer='Steve Canny',
maintainer_email='[email protected]',
url='http://github.com/mikemaccana/python-docx',
py_modules=['docx'],
data_files=[
('docx-template/_rels', glob('template/_rels/.*')),
('docx-template/docProps', glob('template/docProps/*.*')),
('docx-template/word', glob('template/word/*.xml')),
('docx-template/word/theme', glob('template/word/theme/*.*')),
],
)