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 40
|
Description: skip warning on downloading enet source
Author: Christoph Egger <christoph@debian.org>
Forwarded: not-needed
Last-Update: 2022-12-26
diff --git a/setup.py b/setup.py
index 691917b..f820ef4 100644
--- python-enet-0.0~vcs.2022.12.26.git.orig/setup.py
+++ python-enet-0.0~vcs.2022.12.26.git/setup.py
@@ -7,22 +7,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/Downloads.html")
- print("See the README for more instructions")
- sys.exit(1)
+# 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/Downloads.html")
+# print("See the README for more instructions")
+# sys.exit(1)
-source_files.extend(_enet_files)
+# 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)])
|