-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·44 lines (39 loc) · 1.17 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, Extension
from ifconfigpy import get_version
modules = []
if os.uname()[0].lower().startswith('freebsd'):
modules.append(
Extension(
'ifconfigpy/driver/_freebsd',
sources=['ifconfigpy/driver/_freebsd.c'],
extra_compile_args=["-Wall"],
)
)
setup(
name='ifconfigpy',
version=get_version(),
url='https://github.com/williambr/ifconfigpy',
license='BSD',
author='William Grzybowski',
author_email='[email protected]',
description=('ifconfigpy is a python library to manipulate interfaces '
'like ifconfig(8)'),
long_description=open(
os.path.join(os.path.dirname(__file__),
'README')).read(),
keywords='ifconfig',
packages=('ifconfigpy', 'ifconfigpy.driver'),
platforms='any',
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: Python',
],
ext_modules=modules,
)