forked from mikemaccana/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (32 loc) · 1.08 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
31
32
33
34
35
36
#!/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']
DESCRIPTION = (
'The docx module creates, reads and writes Microsoft Office Word 2007 do'
'cx files'
)
setup(
name='docx',
version='0.2.4',
install_requires=['lxml', 'Pillow>=2.0'],
description=DESCRIPTION,
author='Mike MacCana',
author_email='python-docx@googlegroups.com',
maintainer='Steve Canny',
maintainer_email='python-docx@googlegroups.com',
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/*.*')),
],
)