-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
27 lines (24 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
#!/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='python-openxml',
version='0.1',
requires=['lxml'],
description='Create .pptx and .docx files from Python',
author='Tom Scrace',
author_email='[email protected]',
url='http://github.com/timetric/python-openxml',
packages=['openxml'],
data_files=[
('openxml/docx_template/_rels', glob('docx_template/_rels/.*')),
('openxml/docx_template/docProps', glob('docx_template/docProps/*.*')),
('openxml/docx_template/word', glob('docx_template/word/*.xml')),
('openxml/docx_template/word/theme', glob('docx_template/word/theme/*.*')),
('openxml/pptx_template/_rels', glob('pptx_template/_rels/.*')),
('openxml/pptx_template/ppt', glob('pptx_template/ppt/*.xml')),
],
)