-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
40 lines (34 loc) · 954 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## ossbrowser
## Author: melory
## Email:[email protected]
## License: GPL Version 2
from distutils.core import setup
import sys
import os
import osscmdlib.pkginfo as pkginfo
if float("%d.%d" % sys.version_info[:2]) < 2.4:
sys.stderr.write("Your Python version %d.%d.%d is not supported.\n" % sys.version_info[:3])
sys.stderr.write("osscmd requires Python 2.4 or newer.\n")
sys.exit(1)
man_path = "share/man"
doc_path = "share/doc/packages"
data_files = [
(doc_path+"/osscmd", [ "README", "INSTALL" ]),
]
## Main distutils info
setup(
## Content description
name = pkginfo.package,
version = pkginfo.version,
packages = ['oss', 'osscmdlib'],
scripts = ['osscmd'],
data_files = data_files,
## Packaging details
author = "linjiudui",
author_email = "[email protected]",
license = pkginfo.license,
description = pkginfo.short_description,
long_description = pkginfo.long_description
)