2018-01-04 22:33:25 +00:00
|
|
|
"""
|
|
|
|
Defines how CORE netns will be build for installation.
|
|
|
|
"""
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2017-04-25 16:45:34 +01:00
|
|
|
from setuptools import setup, Extension
|
2018-01-04 22:33:25 +00:00
|
|
|
|
|
|
|
|
2017-04-25 16:45:34 +01:00
|
|
|
netns = Extension(
|
|
|
|
"netns",
|
|
|
|
sources=[
|
|
|
|
"netnsmodule.c",
|
|
|
|
"netns.c"
|
|
|
|
]
|
|
|
|
)
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2017-04-25 16:45:34 +01:00
|
|
|
vcmd = Extension(
|
|
|
|
"vcmd",
|
|
|
|
sources=[
|
|
|
|
"vcmdmodule.c",
|
|
|
|
"vnode_client.c",
|
|
|
|
"vnode_chnl.c",
|
|
|
|
"vnode_io.c",
|
|
|
|
"vnode_msg.c",
|
|
|
|
"vnode_cmd.c",
|
|
|
|
],
|
|
|
|
library_dirs=["build/lib"],
|
|
|
|
libraries=["ev"]
|
|
|
|
)
|
|
|
|
|
|
|
|
setup(
|
2017-12-19 17:43:19 +00:00
|
|
|
name="core-netns",
|
2019-03-25 17:44:47 +00:00
|
|
|
version="@PACKAGE_VERSION@",
|
2017-12-19 17:43:19 +00:00
|
|
|
description="Extension modules to support virtual nodes using Linux network namespaces",
|
2017-12-22 00:19:12 +00:00
|
|
|
scripts=["vcmd", "vnoded", "netns"],
|
2017-04-25 16:45:34 +01:00
|
|
|
ext_modules=[
|
|
|
|
netns,
|
|
|
|
vcmd
|
|
|
|
],
|
2019-03-31 05:19:00 +01:00
|
|
|
url="https://github.com/coreemu/core",
|
2017-04-25 16:45:34 +01:00
|
|
|
author="Boeing Research & Technology",
|
|
|
|
license="BSD",
|
2018-01-04 22:33:25 +00:00
|
|
|
long_description="Extension modules and utilities to support virtual nodes using Linux network namespaces",
|
2017-04-25 16:45:34 +01:00
|
|
|
)
|