-
Notifications
You must be signed in to change notification settings - Fork 76
/
setup.py
executable file
·70 lines (59 loc) · 1.91 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
from setuptools import find_packages
INSTALL_REQUIRES = [
]
DATA_FILES = [
('/etc/default/', ['etc/default/networking']),
('/etc/network/ifupdown2/', ['etc/network/ifupdown2/addons.conf']),
('/etc/network/ifupdown2/', ['etc/network/ifupdown2/ifupdown2.conf']),
('/usr/share/ifupdown2/sbin/', ['ifupdown2/sbin/start-networking'])
]
SCRIPTS = []
ENTRY_POINTS = {}
def build_deb_package():
try:
return sys.argv[sys.argv.index('--root') + 1].endswith('/debian/ifupdown2')
except Exception:
pass
return False
if not build_deb_package():
ENTRY_POINTS = {
'console_scripts': [
'ifup = ifupdown2.__main__:main',
'ifdown = ifupdown2.__main__:main',
'ifquery = ifupdown2.__main__:main',
'ifreload = ifupdown2.__main__:main',
],
}
setup(
author='Julien Fortin',
author_email='jfortin@nvidia.com',
maintainer='Julien Fortin',
maintainer_email='jfortin@nvidia.com',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Topic :: System :: Networking',
'Topic :: System :: Systems Administration'
],
description='interface network manager',
install_requires=INSTALL_REQUIRES,
license='GNU General Public License v2',
keywords='ifupdown2',
name='ifupdown2',
packages=find_packages(),
url='https://github.com/CumulusNetworks/ifupdown2',
version='3.0.0',
data_files=DATA_FILES,
setup_requires=['setuptools'],
scripts=SCRIPTS,
entry_points=ENTRY_POINTS
)