[AstroPy] PyWCS build failure on Windows 7 and Windows XP with EPD

Michael Droettboom mdroe at stsci.edu
Mon Apr 4 09:21:38 EDT 2011


Can you apply the attached patch and let me know if it works for you?

Mike

On 04/03/2011 07:04 PM, Tom Aldcroft wrote:
> Hi -
>
> I'm am unable to build PyWCS on a Windows 7 and Windows XP machines
> using the latest EPD 7.0.2.  In both cases I get the same compiler
> error.   Any hints or advice would be most welcome.  Below I include
> configuration information and the build log.
>
> Thanks, Tom
>
> ---------------------------------
>
> Windows 7 Pro 64bit, 2009, fully updated.
>
> Python version is 2.7.1 -- EPD 7.0-2 (64bit)
>
> Here is what I get with "python setup.py install" command from the
> directory indicated, where I unzipped the pywcs tar ball:
>
> C:\Python27\Scripts\pywcs-1.10-4.7>python setup.py install
>
> running install
> running build
> running build_py
> copying lib\svn_version.py ->  build\lib.win-amd64-2.7\pywcs
>
> running build_ext
> building 'pywcs._pywcs' extension
> C:\Python27\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -DMS_WIN64 -DECHO -DWCSTR
> IG_MACRO -DPYWCS_BUILD -D_GNU_SOURCE -DNDEBUG -DYY_NO_UNISTD_H -D_CRT_SECURE_NO_
> WARNINGS -UDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -I.\wcslib\C
>   -Iwcslib\C -I.\src -IC:\Python27\include -IC:\Python27\PC -c wcslib\C\flexed/wc
> sbth.c -o build\temp.win-amd64-2.7\Release\wcslib\c\flexed\wcsbth.o
> In file included from wcsbth.l:118:0:
> .\wcslib\C/wcs.h:1396:5: error: conflicting types for 'wcsset'
> c:/python27/egg-info/mingw/usr/lib/gcc/../../x86_64-w64-mingw32/include/string.h
> :161:20: note: previous declaration of 'wcsset' was here
> wcsbth.l: In function 'wcsbth':
> wcsbth.l:2081:1: warning: statement with no effect
> wcsbth.l: At top level:
> wcsbth.c:19886:16: warning: 'input' defined but not used
> error: command 'gcc' failed with exit status 1
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>    


-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32_fix.diff
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/astropy/attachments/20110404/8a550ba9/attachment.bin>


More information about the AstroPy mailing list