| @@ -1,19 +1,28 @@ | | | @@ -1,19 +1,28 @@ |
1 | $NetBSD: patch-setup.py,v 1.2 2019/09/24 09:04:08 adam Exp $ | | 1 | $NetBSD: patch-setup.py,v 1.3 2019/10/11 14:38:56 wiz Exp $ |
2 | | | 2 | |
3 | Add NetBSD. | | 3 | Add NetBSD. |
4 | | | 4 | |
5 | --- setup.py.orig 2015-06-04 15:28:48.000000000 +0000 | | 5 | --- setup.py.orig 2015-06-04 15:28:48.000000000 +0000 |
6 | +++ setup.py | | 6 | +++ setup.py |
| | | 7 | @@ -3,7 +3,7 @@ |
| | | 8 | # Set True to force compile native C-coded extension providing direct access |
| | | 9 | # to inotify's syscalls. If set to False this extension will only be compiled |
| | | 10 | # if no inotify interface from ctypes is found. |
| | | 11 | -compile_ext_mod = False |
| | | 12 | +compile_ext_mod = True |
| | | 13 | |
| | | 14 | # import statements |
| | | 15 | import os |
7 | @@ -24,10 +24,6 @@ if sys.version_info < (2, 4): | | 16 | @@ -24,10 +24,6 @@ if sys.version_info < (2, 4): |
8 | sys.stderr.write('This module requires at least Python 2.4\n') | | 17 | sys.stderr.write('This module requires at least Python 2.4\n') |
9 | sys.exit(1) | | 18 | sys.exit(1) |
10 | | | 19 | |
11 | -# check linux platform | | 20 | -# check linux platform |
12 | -if not platform.startswith('linux') and not platform.startswith('freebsd'): | | 21 | -if not platform.startswith('linux') and not platform.startswith('freebsd'): |
13 | - sys.stderr.write("inotify is not available on %s\n" % platform) | | 22 | - sys.stderr.write("inotify is not available on %s\n" % platform) |
14 | - sys.exit(1) | | 23 | - sys.exit(1) |
15 | | | 24 | |
16 | | | 25 | |
17 | classif = [ | | 26 | classif = [ |
18 | @@ -71,7 +67,7 @@ def should_compile_ext_mod(): | | 27 | @@ -71,7 +67,7 @@ def should_compile_ext_mod(): |
19 | return True | | 28 | return True |