[PATCH] pycairo: Fix version number in setup.py

Simon Sapin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi,

You can find attached a small fix in pycairo’s setup.py file (for Python 
3.) The PYCAIRO_VERSION_MICRO and PYCAIRO_VERSION_MINOR macros were 
swapped, resulting in cairo.version_info() to be eg. (1, 0, 10) instead 
of (1, 10, 0).

Also available here:
https://github.com/SimonSapin/pycairo/commit/4e7e41b61fc

Cheers,
-- 
Simon Sapin

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
fix-distutils-version.patch (text/x-patch, 731 B)
From 4e7e41b61fc91673f630b0435e5003225c8af65a Mon Sep 17 00:00:00 2001
From: Simon Sapin <[email protected]>
Date: Tue, 18 Dec 2012 09:06:07 +0100
Subject: [PATCH] Fix the version number in config.h generated by setup.py

The PYCAIRO_VERSION_MICRO and PYCAIRO_VERSION_MINOR macros were swapped.
---
 setup.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index bde4ce2..1985420 100755
--- a/setup.py
+++ b/setup.py
@@ -71,8 +71,8 @@ def createConfigFile(ConfigFile):
 #define _CONFIG_H 1
 
 #define PYCAIRO_VERSION_MAJOR %s
-#define PYCAIRO_VERSION_MICRO %s
 #define PYCAIRO_VERSION_MINOR %s
+#define PYCAIRO_VERSION_MICRO %s
 #define VERSION "%s"
 
 #endif // _CONFIG_H
-- 
1.7.10
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.