forked from mpetazzoni/ptftpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 2.11 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Marc Poulhiès
#
# This file is part of pTFTPd.
# pTFTPd is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pTFTPd is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pTFTPd. If not, see <http://www.gnu.org/licenses/>.
from distutils.core import setup
import sys
try:
import netifaces
except ImportError:
print """
'netifaces' is missing from your system, it's needed for pTFTPd to work.
If you are using Debian/Ubuntu, you need to install 'python-netifaces'
"""
sys.exit(1)
setup(name = "ptftpd",
description = "pTFTPd, a pure-Python TFTP tool suite that works",
long_description = """
pTFTPd is a pure-Python TFTP tool suite. It features a TFTP server and client
fully compliant to the TFTP specification defined in RFC1350. It also supports
the TFTP Option Extension protocol (per RFC2347), the block size option as
defined in RFC2348 and the transfer size option from RFC2349.
The pTFTPd tool suite also includes a mini-DHCP server, a BOOTP server, and a
complexe PXE solution based on the DHCP and TFTP servers.
""",
version = "1.0",
author = 'Maxime Petazzoni',
author_email = '[email protected]',
url = "https://github.com/mpetazzoni/ptftpd",
license = "GPL",
maintainer = 'Maxime Petazzoni',
maintainer_email = '[email protected]',
requires=['netifaces'],
packages = ['ptftplib'],
scripts = ['bin/%s' % i for i in ["bootpd",
"ptftpd",
"pxed",
"ptftp",
"dhcpd"]],
)