-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
48 lines (43 loc) · 1.49 KB
/
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
45
46
47
48
#!/usr/bin/env python3
#-----------------------------------------------------------------------------
# A setup.py installation script modified for 'mtraceroute.py'.
#-----------------------------------------------------------------------------
"""
A distutils Python setup file. For setuptools support see setup_egg.py.
"""
import os
import sys
from distutils.core import setup
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
import release
#
#-----------------------------------------------------------------------------
def main():
if sys.version_info[:2] < (3, 6):
print("nstipgeolocate requires Python version 3.6.x or higher.")
sys.exit(1)
if sys.argv[-1] == 'setup.py':
print("To install, run 'python3 setup.py install'")
print()
setup(
name = release.name,
version = release.version,
description = release.description,
keywords = release.keywords,
download_url = release.download_url,
author = release.author,
author_email = release.author_email,
url = release.url,
packages = release.packages,
package_data = release.package_data,
license = release.license,
long_description = release.long_description,
scripts = release.scripts,
platforms = release.platforms,
classifiers = release.classifiers,
)
#
#-----------------------------------------------------------------------------
if __name__ == "__main__":
main()