summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-01-28 22:58:45 +0100
committerSebastien Martini <seb@dbzteam.org>2011-01-28 22:58:45 +0100
commit206b35ef39c7b7af4fee42dd25dc5703c9b114ea (patch)
tree72c3de686ce8793b14306e4ff69e2633ef20bdf0
parent7265eb242b28f86381e125be96fc14026f066e15 (diff)
downloadpyinotify-206b35ef39c7b7af4fee42dd25dc5703c9b114ea.tar.gz
Updated setup.py.
-rwxr-xr-xsetup.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 01b864e..4106a73 100755
--- a/setup.py
+++ b/setup.py
@@ -5,28 +5,25 @@
# if no inotify interface from ctypes is found.
compile_ext_mod = False
-# check Python's version
-import sys
-if sys.version_info < (2, 4):
- sys.stderr.write('This module requires at least Python 2.4\n')
- sys.exit(1)
-
# import statements
import os
+import sys
from distutils.core import setup, Extension
from distutils.util import get_platform
-# debug
-DISTUTILS_DEBUG = False
-
-# get platform
platform = get_platform()
+# check Python's version
+if sys.version_info < (2, 4):
+ sys.stderr.write('This module requires at least Python 2.4\n')
+ sys.exit(1)
+
# check linux platform
if not platform.startswith('linux'):
- sys.stderr.write("inotify is not available under %s\n" % platform)
+ sys.stderr.write("inotify is not available on %s\n" % platform)
sys.exit(1)
+
classif = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
@@ -49,6 +46,7 @@ classif = [
]
+# Select branch
if sys.version_info >= (3, 0):
package_dir = {'': 'python3'}
else:
@@ -98,7 +96,6 @@ setup(
platforms='Linux',
classifiers=classif,
url='http://github.com/seb-m/pyinotify',
- #download_url='http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-0.9.1.tar.gz',
ext_modules=ext_mod,
py_modules=['pyinotify'],
package_dir=package_dir,