Author: Matti Picus <[email protected]>
Branch:
Changeset: r68297:ea530af6eb9c
Date: 2013-11-24 10:25 +0200
http://bitbucket.org/pypy/pypy/changeset/ea530af6eb9c/
Log: fix for issue 1635, building extension module with MSVC
diff --git a/pypy/module/cpyext/include/pyconfig.h
b/pypy/module/cpyext/include/pyconfig.h
--- a/pypy/module/cpyext/include/pyconfig.h
+++ b/pypy/module/cpyext/include/pyconfig.h
@@ -25,6 +25,20 @@
#define Py_UNICODE_SIZE 2
#endif
+#if defined(_MSC_VER)
+ /* So MSVC users need not specify the .lib file in
+ * their Makefile (other compilers are generally
+ * taken care of by distutils.) */
+# ifdef _DEBUG
+# error("debug first with cpython")
+# pragma comment(lib,"python27.lib")
+# else
+# pragma comment(lib,"python27.lib")
+# endif /* _DEBUG */
+#endif /* _MSC_VER */
+
+
+
#ifdef __cplusplus
}
#endif
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit