summaryrefslogtreecommitdiffstats
path: root/superkaramba/examples/globalMouse/extension/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'superkaramba/examples/globalMouse/extension/setup.py')
-rw-r--r--superkaramba/examples/globalMouse/extension/setup.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/superkaramba/examples/globalMouse/extension/setup.py b/superkaramba/examples/globalMouse/extension/setup.py
index f33f8a6..49bd87b 100644
--- a/superkaramba/examples/globalMouse/extension/setup.py
+++ b/superkaramba/examples/globalMouse/extension/setup.py
@@ -1,12 +1,14 @@
from distutils.core import setup, Extension
-module1 = Extension('xcursor',
- include_dirs = ['/usr/X11R6/include'],
- libraries = ['X11'],
- library_dirs = ['/usr/X11R6/lib'],
- sources = ['xcursor.c'])
+def main():
+ setup(name = 'XMouseCursor',
+ version = '1.0',
+ description = 'Determines the position of the X mouse cursor',
+ ext_modules = [Extension('xcursor',
+ include_dirs = ['/usr/X11R6/include'],
+ libraries = ['X11'],
+ library_dirs = ['/usr/X11R6/lib'],
+ sources = ['xcursor.c'])])
-setup (name = 'XMouseCursor',
- version = '1.0',
- description = 'Determines the position of the X mouse cursor',
- ext_modules = [module1])
+if __name__ == "__main__":
+ main()