forked from h4ck3rm1k3/i2py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (59 loc) · 2.21 KB
/
setup.py
File metadata and controls
74 lines (59 loc) · 2.21 KB
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
70
71
72
#!/usr/bin/env python
#
# Copyright (C) 2005 Christopher J. Stawarz <chris@pseudogreen.org>
#
# This file is part of i2py.
#
# i2py is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# i2py is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with i2py; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
import sys
from distutils.core import setup
# Need to do this to ensure that ytab.py exists and is up to date
import i2py
################################################################################
#
# Generate documentation with pydoc
#
################################################################################
if len(sys.argv) > 1 :
if sys.argv[1] == 'sdist':
import os, os.path
import pydoc
os.chdir('doc')
moddir = os.path.join(os.pardir, 'i2py')
sys.path.insert(0, moddir)
pydoc.writedocs(moddir, 'i2py.')
sys.path.pop(0)
os.chdir(os.pardir)
################################################################################
#
# Run setup()
#
################################################################################
# Grab the description from the package's doc string
desc = i2py.__doc__.split('\n\n')
setup(name='i2py',
version=i2py.__version__,
author='Christopher J. Stawarz, James Michael DuPont',
author_email='chris@pseudogreen.org, jamesmikedupont@gmail.com',
url='http://software.pseudogreen.org/i2py/, https://github.com/h4ck3rm1k3/i2py ',
license='http://www.fsf.org/licensing/licenses/gpl.html',
platforms=['any'],
description=desc[0].strip(),
long_description=('\n' + '\n\n'.join(desc[1:]).strip() + '\n'),
packages=['i2py'],
requires=['ply'],
scripts=['idl2python'],
)