aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2009-09-29 14:18:24 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2009-09-29 14:18:24 -0300
commite6aa6bf53cb954f1a937f6cafc79e4c60c172cd3 (patch)
treed3bc3b61d6e44a39a7c24ab4b970810e6ecb9e66 /setup.py
parent9795b7728134d4d939c0f364f37ac1a378de434c (diff)
downloadnet_monitor-e6aa6bf53cb954f1a937f6cafc79e4c60c172cd3.tar
net_monitor-e6aa6bf53cb954f1a937f6cafc79e4c60c172cd3.tar.gz
net_monitor-e6aa6bf53cb954f1a937f6cafc79e4c60c172cd3.tar.bz2
net_monitor-e6aa6bf53cb954f1a937f6cafc79e4c60c172cd3.tar.xz
net_monitor-e6aa6bf53cb954f1a937f6cafc79e4c60c172cd3.zip
converted to python module format
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 3d2af8c..fdd32bf 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,8 @@ from version import *
from distutils.core import setup, Extension
-module1 = Extension('net_monitor',
- sources=['native/net_monitor.c'])
+module1 = Extension('net_monitor/_native',
+ sources=['src/_native.c'])
setup (name='net_monitor',
version=version,
@@ -19,5 +19,7 @@ old net_monitor from drakx-net. It supports graphical network monitoring and
some advanced features, such as network profiling, activity monitoring,
detailed logging and network traffic statistics with help of vnstat reporting.
""",
- scripts=["net_monitor"],
+ packages=["net_monitor"],
+ package_dir = {"net_monitor": "src"},
+ scripts=["src/net_monitor"],
ext_modules=[module1])