diff --git a/__pkginfo__.py b/__pkginfo__.py index c732fac8f916459c37608c1d7d82479f868bc571_X19wa2dpbmZvX18ucHk=..1166c3771d9771ecae7e2e6c71ce882e4522ed2f_X19wa2dpbmZvX18ucHk= 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -32,7 +32,7 @@ pyversions = ['2.4'] -import os, subprocess +import os, subprocess, sys from distutils.core import Extension include_dirs = [] @@ -55,8 +55,10 @@ GECODE_VERSION = encode_version(*gecode_version()) -ext_modules = [Extension('rql_solve', - ['gecode_solver.cpp'], - libraries=['gecodeint', 'gecodekernel', 'gecodesearch'], - extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION], +if sys.platform != 'win32': + ext_modules = [Extension('rql_solve', + ['gecode_solver.cpp'], + libraries=['gecodeint', 'gecodekernel', + 'gecodesearch','gecodesupport'], + extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION], ) @@ -62,2 +64,10 @@ ) - ] + ] +else: + ext_modules = [ Extension('rql_solve', + ['gecode_solver.cpp'], + libraries=['gecodeint', 'gecodekernel', + 'gecodesearch','gecodesupport'], + extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION], + extra_link_args=['-static-libgcc'], + ] \ No newline at end of file