forked from jathanism/python-opensso
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·44 lines (34 loc) · 1010 Bytes
/
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
#!/usr/bin/env python
# $Revision $
from distutils.core import setup, Command
import os
# Get version from pkg index
from openam import __version__, __author_name__, __author_email__
class CleanCommand(Command):
description = "cleans up non-package files. (dist, build, etc.)"
user_options = []
def initialize_options(self):
self.files = None
def finalize_options(self):
self.files = './build ./dist ./MANIFEST ./*.pyc examples/*.pyc ./*.egg-info'
def run(self):
print 'Cleaning: %s' % self.files
os.system('rm -rf ' + self.files)
long_desc = """
Python interface for OpenAM.
"""
setup(
name='python-openam',
version=__version__,
author=__author_name__,
author_email=__author_email__,
license='MIT',
py_modules=['openam'],
url='https://github.com/juanjbrown/python-openam/',
description='Python OpenAM interface',
long_description=long_desc,
scripts=[],
cmdclass={
'clean': CleanCommand,
}
)