forked from reinspijkerman/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (27 loc) · 1.05 KB
/
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
28
29
30
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
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.1',
install_requires=['lxml', 'PIL'],
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/*.*')),
],
)