-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (33 loc) · 1.02 KB
/
setup.py
File metadata and controls
37 lines (33 loc) · 1.02 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
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
import sys
class InstallHook(_install):
def run(self):
self.preInstall()
_install.run(self)
def preInstall(self):
if sys.version_info[0] >= 3 or sys.version_info <= (2,5):
raise Exception("This module only supports Python 2.6 or 2.7")
setup(
cmdclass = {"install": InstallHook},
name = "py.Net",
version = "1.0.2",
description = "Useful classes for common network related functions and abstraction",
author = "Jesse Cowles",
author_email = "jcowles@indigital.net",
url = "http://projects.indigitaldev.net/py.Net",
namespace_packages = ["Net"],
package_dir = {"":"src"},
packages = find_packages("src"),
zip_safe = False,
install_requires = [
"netaddr",
],
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
],
)