[pythran] Re: failing setup.py tests, gmp, vcvarsall.bat not found

  • From: pierrick brunet <brunetpierrick@xxxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Sun, 13 Dec 2015 22:11:39 +0100

BTW, thanks for the report on the `Try: Except:` as it is valid on every
Windows install.

2015-12-11 7:55 GMT+01:00 jo <dmarc-noreply@xxxxxxxxxxxxx>:

I will try that out eventually, currently trying to get a version working
on linux box...

------------------------------
*From:* serge guelton <sguelton@xxxxxxxxxxxxx>
*To:* pythran@xxxxxxxxxxxxx
*Sent:* Thursday, December 10, 2015 11:49 AM
*Subject:* [pythran] Re: failing setup.py tests, gmp, vcvarsall.bat not
found

On Thu, Dec 10, 2015 at 10:36:32AM +0000, jo wrote:


Hi

Hope you can help my with my questions....

Installed pythran on a windows 7 box with the intention of porting heavy
numpy code to cpp which would then need cross compilation to an
embedded platform where no python is available or even potentially
available.

I believe I have all deps ok except for gmp (setup.py did not find it
although I put in third-party). I dont think I need gmp anyway.
I had to make a few changes to setup.py:

except Exception:
# failure: remove the gmp dependency
print('Failed to compile GMP source, disabling long
support.')
pythrandir=r'C:\projects\pythran' <----------
for cfg in glob.glob(os.path.join(pythrandir,
"pythran-*.cfg")):
with open(cfg, "r+") as cfg:
content = cfg.read()
content = content.replace('USE_GMP', '')
content = content.replace('gmp gmpxx', '')
cfg.seek(0)
cfg.write(content)
try: <----------
map(os.remove, objs + srcs + [exe])
except:
print ('!!!!') <----------



Below are testresults of setup.py. I do not know how to find out why I
have so many Failing tests.

Hi jo,

We only tested pytrhan + Winpython combinatiopn on windows, as described



in


http://pythonhosted.org/pythran/#windows

Is it a viable option for you?





Other related posts: