Hey. Builds and installs OK, looks OK at the Python command line, but
one test failure (at the bottom of all this:)
I'm happy to do some diagnosis if it isn't immediately obvious to you
what this might be.
WinXP, Python 2.6.5, build using gcc from MinGW:
F:\Documents and Settings\jhartley\docs\scratch\planar-0.1
> python setup.py install
running install
running build
running build_py
running build_ext
building 'planar.cvector' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\lib
creating build\temp.win32-2.6\Release\lib\planar
F:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Iinclude -IF:
\Python26\include
-IF:\Python26\PC -c lib/planar/cvectormodule.c -o build
\temp.win32-2.6\Release\lib\planar\cvectormodule.o
writing build\temp.win32-2.6\Release\lib\planar\cvector.def
F:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build
\temp.win32-2.6\Release\lib\planar\cvectormodule.o build
\temp.win32-2.6\Release\lib\planar\cvector.def -LF:\Python26\libs -LF:
\Python26\PCbuild -lpython26 -lmsvcr90 -o build\lib.win32-2.6\planar
\cvector.pyd
running install_lib
creating F:\Python26\Lib\site-packages\planar
copying build\lib.win32-2.6\planar\cvector.pyd -> F:\Python26\Lib\site-
packages\planar
creating F:\Python26\Lib\site-packages\planar\test
copying build\lib.win32-2.6\planar\test\test_planar.py -> F:
\Python26\Lib\site-packages\planar\test
copying build\lib.win32-2.6\planar\test\test_util.py -> F:\Python26\Lib
\site-packages\planar\test
copying build\lib.win32-2.6\planar\test\test_vector.py -> F:
\Python26\Lib\site-packages\planar\test
copying build\lib.win32-2.6\planar\test\__init__.py -> F:\Python26\Lib
\site-packages\planar\test
copying build\lib.win32-2.6\planar\util.py -> F:\Python26\Lib\site-
packages\planar
copying build\lib.win32-2.6\planar\vector.py -> F:\Python26\Lib\site-
packages\planar
copying build\lib.win32-2.6\planar\__init__.py -> F:\Python26\Lib\site-
packages\planar
byte-compiling F:\Python26\Lib\site-packages\planar\test
\test_planar.py to test_planar.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\test\test_util.py
to test_util.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\test
\test_vector.py to test_vector.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\test\__init__.py
to __init__.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\util.py to
util.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\vector.py to
vector.pyc
byte-compiling F:\Python26\Lib\site-packages\planar\__init__.py to
__init__.pyc
running install_egg_info
Writing F:\Python26\Lib\site-packages\planar-0.1-py2.6.egg-info
> yolk -l | grep planar
planar - 0.1 - active
> python setup.py build
running build
running build_py
running build_ext
> nosetests -d -w build\lib.win32-2.6\planar
...............................................................................E.........................
======================================================================
ERROR: test_is_null (planar.test.test_vector.PyVec2TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "F:\Documents and Settings\jhartley\docs\scratch
\planar-0.1\build\lib.win32-2.6\planar\test\test_vector.py", line 108,
in test_is_null
assert not self.Vec2(float('nan'), 0).is_null
File "F:\Documents and Settings\jhartley\docs\scratch
\planar-0.1\build\lib.win32-2.6\planar\util.py", line 43, in getter
self.__dict__[name] = value = func(self)
File "F:\Documents and Settings\jhartley\docs\scratch
\planar-0.1\build\lib.win32-2.6\planar\vector.py", line 99, in is_null
return self.length2 < planar.EPSILON2
File "F:\Documents and Settings\jhartley\docs\scratch
\planar-0.1\build\lib.win32-2.6\planar\util.py", line 43, in getter
self.__dict__[name] = value = func(self)
File "F:\Documents and Settings\jhartley\docs\scratch
\planar-0.1\build\lib.win32-2.6\planar\vector.py", line 91, in length2
return self[0] ** 2 + self[1] ** 2
ValueError: (33, 'Domain error')
----------------------------------------------------------------------
Ran 105 tests in 0.046s
FAILED (errors=1)
On Apr 27, 5:05 pm, Casey Duncan <
casey.dun...@gmail.com> wrote:
> Definitely, I've not done any testing on Windows, so let me know what
> happens when it builds. I'm happy to help fix any compiler complaints.
>
> -Casey
>
> On Tue, Apr 27, 2010 at 3:34 AM, Jonathan Hartley <
tart...@tartley.com> wrote:
> > On 27/04/2010 05:05, Casey Duncan wrote:
>
> >> try building it on their platform of choice and
> >> running the tests,
>
> > Windows XP any use to you? I'll fire it up at lunchtime...
>
> > --
> > Jonathan Hartley Made of meat.
http://tartley.com
> >
tart...@tartley.com +44 7737 062 225 twitter/skype: tartley