-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (54 loc) · 1.75 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
### this is inspired by Pyglet file
from setuptools import setup, find_packages
VERSION = '1.0.0'
long_description = '''pdftex backend for matplotlib (Linux only)'''
excluded = []
def exclude_package(pkg):
for exclude in excluded:
if pkg.startswith(exclude):
return True
return False
def create_package_list(base_package):
return ([base_package] +
[base_package + '.' + pkg
for pkg
in find_packages(base_package)
if not exclude_package(pkg)])
setup_info = dict(
# Metadata
name='pdftex',
version=VERSION,
author='Farshid Varno',
author_email='[email protected]',
url='https://github.com/fvarno/PDFTex',
download_url='https://github.com/fvarno/PDFTex.git',
description='pdftex backend for matplotlib',
long_description=long_description,
license='GNU General Public License v3.0',
classifiers=[
'Development Status :: 2 - Pre-Alpha ',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Text Processing :: Markup :: LaTeX',
'Framework :: Matplotlib',
],
# Package info
packages=create_package_list('pdftex'),
install_requires=[
'matplotlib',
'pillow'
],
# Add _ prefix to the names of temporary build dirs
options={
'build': {'build_base': '_build'},
# 'sdist': {'dist_dir': '_dist'},
},
zip_safe=True,
)
setup(**setup_info)