-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·39 lines (31 loc) · 872 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
#!/usr/bin/env python
# -*- coding:utf-8 -*-
try:
import setuptools
from setuptools import setup, find_packages
except ImportError:
print("Please install setuptools.")
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
import sys
if sys.version_info < (3, 3, 0):
sys.stderr.write("PyQCheck is require Python 3.3 or newer.\n")
sys.exit(-1)
libdir = "lib"
sys.path.insert(0, libdir)
import pyqcheck as pkg
setup_options = {
"name": pkg.__name__,
"version": pkg.__version__,
"description": pkg.__description__,
"author": pkg.__author__,
"author_email": pkg.__author_email__,
"license": pkg.__license__,
"url": pkg.__url__,
"packages":find_packages(libdir),
"package_dir": {"": libdir},
"classifiers": pkg.__classifiers__
}
setup(**setup_options)