[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [PATCH] Improve support for non-interactive configuration
- To: Pygame <pygame-users@xxxxxxxx>
- Subject: [pygame] [PATCH] Improve support for non-interactive configuration
- From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@xxxxxxxxx>
- Date: Fri, 29 Apr 2011 19:07:47 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 29 Apr 2011 13:08:34 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; bh=cfYC7RuY40VWal4bz5aAWX1k1s2WanN4ez7+8febnCk=; b=yDIuCqSOjlEAnm9HcGWdjP9MIY4Mo+ize0ws2HzJ0X7xkzmqM3H77AmCH+ogemExJP fsgo3nabJqLCZr6uq191dzm9MevlHRRmWXcGiX++aGgYehG5cpD/AiYWLoNuN/OHmelL rhlM0Gi1OdJLaqzwcuhpg2yya6SZfqCNGSmOI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; b=d63u1pePPiR5wfPuuo0aIopyLuoXRzq33yDBel8oUzGgHblHLaMB14aBHRyENfapkR 4vhPUlRfW+yxJDK8s8OKHbq15AdSUr2tsU/R1Wj7dIJcHUPHKJxuzRyrx2/druZw3aHW 1lEArLNi2EZbZktARxZQfTnRcdcaGjHGC6iPQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: KMail/1.13.6 (Linux/2.6.34-tuxonice-r8-AFTA; KDE/4.4.5; x86_64; ; )
config.py has some checks for "-auto" option in some places, but similar checks
are missing in config_msys.py and config_unix.py, which can be imported by config.py.
I'm attaching the patch, which fixes this problem. This allows to easily configure
Pygame non-interactively using a script.
--
Arfrever Frehtes Taifersar Arahesis
Index: config_unix.py
===================================================================
--- config_unix.py (revision 3081)
+++ config_unix.py (working copy)
@@ -216,7 +216,7 @@
for d in DEPS[1:]:
if not d.found:
- if not confirm("""
+ if "-auto" not in sys.argv and not confirm("""
Warning, some of the pygame dependencies were not found. Pygame can still
compile and install, but games that depend on those missing dependencies
will not run. Would you like to continue the configuration?"""):
Index: config_msys.py
===================================================================
--- config_msys.py (revision 3081)
+++ config_msys.py (working copy)
@@ -289,7 +289,7 @@
for d in DEPS[1:]:
if not d.found:
- if not confirm("""
+ if "-auto" not in sys.argv and not confirm("""
Warning, some of the pygame dependencies were not found. Pygame can still
compile and install, but games that depend on those missing dependencies
will not run. Would you like to continue the configuration?"""):
Attachment:
signature.asc
Description: This is a digitally signed message part.