I have this Cython code: cdef struct MyStruct: int x def byte_bugginess(x=1): cdef char val = 1 cdef MyStruct foo print("1 - val = %d" % val) if x in (3, 4): print("2 - val = %d" % val) val = 2 print("3 - val = %d" % val) else:...
This is how I got FreeTDS to compile on Windows 7 Professional with Visual Studio 2008. 1. Install Visual Studio 2008 (a.k.a.: Visual Studio 9.0) 2. Download the FreeTDS 0.91 source tarball and extract it somewhere. I chose...
I was working on the setup.py for pymssql and was annoyed by the distutils.ccompiler.CCompiler.has_function function -- because it checks whether a C function exists by creating a very simple C program and invoking the compiler...
Here's a pull request I just submitted to homebrew to make it possible to build FreeTDS from master on its gitorious repo: https://github.com/mxcl/homebrew/pull/21309 Example of using it: $ brew install freetds --HEAD --universal...
A note for my future self on how to compile a library as universal binary in Mac OS X. For a while, I've been getting warnings like these when building pymssql: ld: warning: ignoring file /usr/local/lib/libsybdb.dylib, file was...
Browsing PyPI yesterday, I was surprised to see a new version of setuptools. I almost thought it was a bug. For years, I've been drinking the distribute Kool-Aid and automatically using distribute instead of setuptools. Well, I...
Finally fixed one little thing that was annoying me on my work laptop with OS X 10.8.4. I couldn't double-tap to drag files or make selections. The fix is dead simple and it's from this CNET article: If you want to reactivate the...