|
From: Didrik P. <dp...@en...> - 2012-07-05 14:47:49
|
On 5 July 2012 16:09, Ferdinando Ametrano <na...@am...> wrote: > Hi Micheal > > in order to achieve your goal you should compile Python with VC2010, > or Pyhton and QL bindings would never link. > Anyway that is definitely not the suggested way to go, as you might > discover that also QL is not friendly with VC2010. > > Try to go back to VC2008. I for one would probably just skip VC2010 altogheter > > ciao -- Nando > > On Wed, Jul 4, 2012 at 10:00 PM, Michael <mdr...@we...> wrote: >> Dear all, >> >> I'm trying to compile the python swig extension. Unfortunately this is not >> working. My current setup looks like this. >> >> - QuantLib Version 1.1 >> - Python Version 2.7.2 >> - Visual Studio 2010 SP1 >> >> When I try to compile the python swig extensions I get the following error: >> >> running build >> running build_py >> running build_ext >> building 'QuantLib._QuantLib' extension >> error: Unable to find vcvarsall.ba This is an issue with distutils that is not aware of VC2010. By tweaking your environment variables, you can bypass that. You might have issues related to the manifest in you files. I have solved that issue with Cython and some wrappers built under VS2010 lately. I don't know how SWIG behaves though. -- Didrik |