-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (49 loc) · 1.68 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
# setup.py for planar
#
# $Id$
import os
import sys
import shutil
from distutils.core import setup, Extension
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
if sys.version_info >= (3, 0):
raise ImportError("build_py_2to3 not found in distutils - it is required for Python 3.x")
from distutils.command.build_py import build_py
suffix = ""
else:
suffix = "-py3k"
srcdir = os.path.dirname(__file__)
def read(fname):
return open(os.path.join(srcdir, fname)).read()
setup(
name='planar2',
version='0.4.1', # *** REMEMBER TO UPDATE __init__.py ***
description='2D planar geometry library for Python.',
long_description=read('README.md'),
provides=['planar2'],
author='Casey Duncan, R. Patrick Xian',
author_email='[email protected]',
url='http://bitbucket.org/caseman/planar/',
license='BSD',
classifiers = [
'Development Status :: 3 - Alpha',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
],
platforms = 'any',
package_dir={'planar2': 'lib/planar2',
'planar2.test': 'test'},
packages=['planar2', 'planar2.test'],
cmdclass = {'build_py': build_py},
)