blob: c02d7f565db61ea311a89bc28aef0a3c8f8483ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Description: Make python-enet build against system libenet 0.0~svn21-1
Origin: debian
Forwarded: no
Last-Update: 2011-05-01
--- python-enet-0.0~svn21.orig/setup.py
+++ python-enet-0.0~svn21/setup.py
@@ -31,22 +31,22 @@ import sys
source_files = ["enet.pyx"]
-_enet_files = glob.glob("enet/*.c")
+# _enet_files = glob.glob("enet/*.c")
-if not _enet_files:
- print("You need to download and extract the enet 1.3 source to enet/")
- print("Download the source from: http://enet.bespin.org/SourceDistro.html")
- print("See the README for more instructions")
- sys.exit(1)
-
-source_files.extend(_enet_files)
+# if not _enet_files:
+# print("You need to download and extract the enet 1.3 source to enet/")
+# print("Download the source from: http://enet.bespin.org/SourceDistro.html")
+# print("See the README for more instructions")
+# sys.exit(1)
+#
+# source_files.extend(_enet_files)
define_macros = [('HAS_POLL', None),
('HAS_FCNTL', None),
('HAS_MSGHDR_FLAGS', None),
('HAS_SOCKLEN_T', None) ]
-libraries = []
+libraries = ['enet']
if sys.platform == 'win32':
define_macros.extend([('WIN32', None)])
|