[wxPython] wxPython 2.2.5 does not create wxc.pyd from source - help!

I followed the instructions in BUILD.win32.txt but failed to get a wxc.pyd file.

What is the trick to get this critical file created? And I also need its associated
wxc.pdb to debug a crash.

I'm using hybrid builds.

    Barry

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I followed the instructions in BUILD.win32.txt but failed to get a wxc.pyd

file.

What is the trick to get this critical file created? And I also need its

associated

wxc.pdb to debug a crash.

I'm using hybrid builds.

What command did you run?

What output did you see?

(Or did you want me to just wave my magic wand and make it work for you with
no info or knowledge of your system? I can do that as soon as someone tells
me where I left my wand... <wink>)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Oh, hey, is that what this thing is? I didn't realise you were in Toronto
recently!

I'd thought it was a q-tip...

*poof*

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, March 14, 2001 7:24 PM
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] wxPython 2.2.5 does not create wxc.pyd from
source - help!
...
(Or did you want me to just wave my magic wand and make it work for you with
no info or knowledge of your system? I can do that as soon as someone tells
me where I left my wand... <wink>)
...

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I running:

Activestate Python 2.0, MS VC++ 6.0 SP4, Windows 2000/SP1, .net beta 1.

As I said I did the commands in build.win32.txt. It seems from looking at
setup.py that wxc.pyd is never built for nt, see line 233. Specifically
here is the command that I expected to build me a wxc.pyd.

python setup.py HYBRID=1 install

With BUILD_GLCANVAS=1 I get this output:

Command line warning D4025 : overriding '/GX' with '/GX-'
Command line warning D4025 : overriding '/Ox' with '/Od'
glcanvas.cpp
G:\wxPython-2.2.5\contrib\glcanvas\msw\glcanvas.cpp(114) : error C2065: 'wxGLContext' : undeclared identifier
...

I set BUILD_GLCANVAS=0 to avoid build errors in stuff I've assumed I do not need.

Preparing CORE...
Preparing OGL...
Preparing STC...
not copying contrib/stc/stc.py (output up-to-date)
running install
running build
running build_py
not copying wxPython\calendar.py (output up-to-date)
not copying wxPython\clip_dnd.py (output up-to-date)
not copying wxPython\cmndlgs.py (output up-to-date)
not copying wxPython\controls.py (output up-to-date)
not copying wxPython\controls2.py (output up-to-date)
not copying wxPython\events.py (output up-to-date)
not copying wxPython\filesys.py (output up-to-date)
not copying wxPython\frames.py (output up-to-date)
not copying wxPython\gdi.py (output up-to-date)
not copying wxPython\glcanvas.py (output up-to-date)
not copying wxPython\grid.py (output up-to-date)
not copying wxPython\html.py (output up-to-date)
not copying wxPython\htmlhelp.py (output up-to-date)
not copying wxPython\image.py (output up-to-date)
not copying wxPython\mdi.py (output up-to-date)
not copying wxPython\misc.py (output up-to-date)
not copying wxPython\misc2.py (output up-to-date)
not copying wxPython\ogl.py (output up-to-date)
not copying wxPython\oglbasic.py (output up-to-date)
not copying wxPython\oglcanvas.py (output up-to-date)
not copying wxPython\oglshapes.py (output up-to-date)
not copying wxPython\oglshapes2.py (output up-to-date)
not copying wxPython\printfw.py (output up-to-date)
not copying wxPython\sizers.py (output up-to-date)
not copying wxPython\stattool.py (output up-to-date)
not copying wxPython\stc.py (output up-to-date)
not copying wxPython\stc_.py (output up-to-date)
not copying wxPython\streams.py (output up-to-date)
not copying wxPython\utils.py (output up-to-date)
not copying wxPython\windows.py (output up-to-date)
not copying wxPython\windows2.py (output up-to-date)
not copying wxPython\windows3.py (output up-to-date)
not copying wxPython\wx.py (output up-to-date)
not copying wxPython\__init__.py (output up-to-date)
not copying wxPython\__version__.py (output up-to-date)
not copying wxPython\lib\activexwrapper.py (output up-to-date)
not copying wxPython\lib\anchors.py (output up-to-date)
not copying wxPython\lib\buttons.py (output up-to-date)
not copying wxPython\lib\calendar.py (output up-to-date)
not copying wxPython\lib\CDate.py (output up-to-date)
not copying wxPython\lib\dialogs.py (output up-to-date)
not copying wxPython\lib\fancytext.py (output up-to-date)
not copying wxPython\lib\filebrowsebutton.py (output up-to-date)
not copying wxPython\lib\floatbar.py (output up-to-date)
not copying wxPython\lib\grids.py (output up-to-date)
not copying wxPython\lib\layoutf.py (output up-to-date)
not copying wxPython\lib\mvctree.py (output up-to-date)
not copying wxPython\lib\pyshell.py (output up-to-date)
not copying wxPython\lib\rpcMixin.py (output up-to-date)
not copying wxPython\lib\shell.py (output up-to-date)
not copying wxPython\lib\splashscreen.py (output up-to-date)
not copying wxPython\lib\vtk.py (output up-to-date)
not copying wxPython\lib\wxPlotCanvas.py (output up-to-date)
not copying wxPython\lib\wxpTag.py (output up-to-date)
not copying wxPython\lib\__init__.py (output up-to-date)
not copying wxPython\lib\editor\editor.py (output up-to-date)
not copying wxPython\lib\editor\py_editor.py (output up-to-date)
not copying wxPython\lib\editor\tokenizer.py (output up-to-date)
not copying wxPython\lib\editor\__init__.py (output up-to-date)
running build_ext
skipping 'gridc' extension (up-to-date)
skipping 'htmlc' extension (up-to-date)
skipping 'utilsc' extension (up-to-date)
skipping 'calendarc' extension (up-to-date)
skipping 'oglc' extension (up-to-date)
skipping 'stc_c' extension (up-to-date)
running install_lib
not copying build\lib.win32-2.0\wxPython\calendar.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\calendarc.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\calendarc.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\clip_dnd.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\cmndlgs.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\controls.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\controls2.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\events.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\filesys.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\frames.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\gdi.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\glcanvas.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\grid.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\gridc.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\gridc.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\html.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\htmlc.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\htmlc.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\htmlhelp.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\image.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\activexwrapper.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\anchors.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\buttons.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\calendar.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\CDate.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\dialogs.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\editor\editor.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\editor\py_editor.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\editor\tokenizer.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\editor\__init__.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\fancytext.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\filebrowsebutton.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\floatbar.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\grids.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\layoutf.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\mvctree.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\pyshell.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\rpcMixin.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\shell.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\splashscreen.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\vtk.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\wxPlotCanvas.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\wxpTag.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\lib\__init__.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\mdi.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\misc.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\misc2.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\ogl.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglbasic.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglc.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglc.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglcanvas.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglshapes.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\oglshapes2.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\printfw.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\sizers.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\stattool.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\stc.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\stc_.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\stc_c.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\stc_c.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\streams.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\utils.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\utilsc.pdb (output up-to-date)
not copying build\lib.win32-2.0\wxPython\utilsc.pyd (output up-to-date)
not copying build\lib.win32-2.0\wxPython\windows.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\windows2.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\windows3.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\wx.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\__init__.py (output up-to-date)
not copying build\lib.win32-2.0\wxPython\__version__.py (output up-to-date)
skipping byte-compilation of C:\Python20\wxPython\calendar.py to calendar.pyc
skipping byte-compilation of C:\Python20\wxPython\clip_dnd.py to clip_dnd.pyc
skipping byte-compilation of C:\Python20\wxPython\cmndlgs.py to cmndlgs.pyc
skipping byte-compilation of C:\Python20\wxPython\controls.py to controls.pyc
skipping byte-compilation of C:\Python20\wxPython\controls2.py to controls2.pyc
skipping byte-compilation of C:\Python20\wxPython\events.py to events.pyc
skipping byte-compilation of C:\Python20\wxPython\filesys.py to filesys.pyc
skipping byte-compilation of C:\Python20\wxPython\frames.py to frames.pyc
skipping byte-compilation of C:\Python20\wxPython\gdi.py to gdi.pyc
skipping byte-compilation of C:\Python20\wxPython\glcanvas.py to glcanvas.pyc
skipping byte-compilation of C:\Python20\wxPython\grid.py to grid.pyc
skipping byte-compilation of C:\Python20\wxPython\html.py to html.pyc
skipping byte-compilation of C:\Python20\wxPython\htmlhelp.py to htmlhelp.pyc
skipping byte-compilation of C:\Python20\wxPython\image.py to image.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\activexwrapper.py to activexwrapper.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\anchors.py to anchors.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\buttons.py to buttons.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\calendar.py to calendar.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\CDate.py to CDate.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\dialogs.py to dialogs.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\editor\editor.py to editor.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\editor\py_editor.py to py_editor.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\editor\tokenizer.py to tokenizer.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\editor\__init__.py to __init__.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\fancytext.py to fancytext.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\filebrowsebutton.py to filebrowsebutton.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\floatbar.py to floatbar.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\grids.py to grids.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\layoutf.py to layoutf.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\mvctree.py to mvctree.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\pyshell.py to pyshell.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\rpcMixin.py to rpcMixin.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\shell.py to shell.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\splashscreen.py to splashscreen.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\vtk.py to vtk.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\wxPlotCanvas.py to wxPlotCanvas.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\wxpTag.py to wxpTag.pyc
skipping byte-compilation of C:\Python20\wxPython\lib\__init__.py to __init__.pyc
skipping byte-compilation of C:\Python20\wxPython\mdi.py to mdi.pyc
skipping byte-compilation of C:\Python20\wxPython\misc.py to misc.pyc
skipping byte-compilation of C:\Python20\wxPython\misc2.py to misc2.pyc
skipping byte-compilation of C:\Python20\wxPython\ogl.py to ogl.pyc
skipping byte-compilation of C:\Python20\wxPython\oglbasic.py to oglbasic.pyc
skipping byte-compilation of C:\Python20\wxPython\oglcanvas.py to oglcanvas.pyc
skipping byte-compilation of C:\Python20\wxPython\oglshapes.py to oglshapes.pyc
skipping byte-compilation of C:\Python20\wxPython\oglshapes2.py to oglshapes2.pyc
skipping byte-compilation of C:\Python20\wxPython\printfw.py to printfw.pyc
skipping byte-compilation of C:\Python20\wxPython\sizers.py to sizers.pyc
skipping byte-compilation of C:\Python20\wxPython\stattool.py to stattool.pyc
skipping byte-compilation of C:\Python20\wxPython\stc.py to stc.pyc
skipping byte-compilation of C:\Python20\wxPython\stc_.py to stc_.pyc
skipping byte-compilation of C:\Python20\wxPython\streams.py to streams.pyc
skipping byte-compilation of C:\Python20\wxPython\utils.py to utils.pyc
skipping byte-compilation of C:\Python20\wxPython\windows.py to windows.pyc
skipping byte-compilation of C:\Python20\wxPython\windows2.py to windows2.pyc
skipping byte-compilation of C:\Python20\wxPython\windows3.py to windows3.pyc
skipping byte-compilation of C:\Python20\wxPython\wx.py to wx.pyc
skipping byte-compilation of C:\Python20\wxPython\__init__.py to __init__.pyc
skipping byte-compilation of C:\Python20\wxPython\__version__.py to __version__.pyc

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I running:

Activestate Python 2.0, MS VC++ 6.0 SP4, Windows 2000/SP1, .net beta 1.

As I said I did the commands in build.win32.txt. It seems from looking at
setup.py that wxc.pyd is never built for nt, see line 233.

There was an indentation bug that I thought I had fixed before making the
source distribution file, but apparently not. That section of code should
look like this:

    if os.name == 'nt':
        rc_file = ['src/wxc.rc']
    else:
        rc_file =

    ext = Extension('wxc', ['src/helpers.cpp',
                            'src/libpy.c',
                            ] + rc_file + swig_sources,

                    include_dirs = includes,
                    define_macros = defines,

                    library_dirs = libdirs,
                    libraries = libs,

                    extra_compile_args = cflags,
                    extra_link_args = lflags,
                    )
    wxpExtensions.append(ext)

Specifically
here is the command that I expected to build me a wxc.pyd.

python setup.py HYBRID=1 install

With BUILD_GLCANVAS=1 I get this output:

Command line warning D4025 : overriding '/GX' with '/GX-'
Command line warning D4025 : overriding '/Ox' with '/Od'
glcanvas.cpp
G:\wxPython-2.2.5\contrib\glcanvas\msw\glcanvas.cpp(114) : error C2065:

'wxGLContext' : undeclared identifier

...

If you want OpenGL you will need to edit wxWindows' setup.h file in
include/wx/msw/setup.h and change the right #define to 1, and then clean and
rebuild wxWindows.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Robin Dunn wrote:

I running:

Activestate Python 2.0, MS VC++ 6.0 SP4, Windows 2000/SP1, .net beta 1.

As I said I did the commands in build.win32.txt. It seems from looking at
setup.py that wxc.pyd is never built for nt, see line 233.

There was an indentation bug that I thought I had fixed before making the
source distribution file, but apparently not.

One of the only things that concerned me about python. ie. implied block statements based on indentation. I am happy that the indentation is *required* as it makes all (most) python programs consistant in terms of visual presentation of the source code, but some kind of start and end tag for block statements in the python language would probably catch these type of *subtle* errors.

BTW, I think python is still a very cool scripting language and wxPython is heaven.

Regards,
Brendan Simon.

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

The code was clear to read. It ran as it read...
Personally I perfer the Python style of indenting to alternatives,
the defect rates from indenting are high in C++ in my experience.

  if( foo() )
    bar();
    opss();

This leads to the rule of always using {} even around a single
statement.

    BArry

···

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Brendan
J Simon
Sent: 15 March 2001 22:59
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] wxPython 2.2.5 does not create wxc.pyd from
source - help!

Robin Dunn wrote:

>> I running:
>>
>> Activestate Python 2.0, MS VC++ 6.0 SP4, Windows 2000/SP1, .net beta 1.
>>
>> As I said I did the commands in build.win32.txt. It seems from looking at
>> setup.py that wxc.pyd is never built for nt, see line 233.
>
> There was an indentation bug that I thought I had fixed before making the
> source distribution file, but apparently not.

One of the only things that concerned me about python. ie. implied
block statements based on indentation. I am happy that the indentation
is *required* as it makes all (most) python programs consistant in terms
of visual presentation of the source code, but some kind of start and
end tag for block statements in the python language would probably catch
these type of *subtle* errors.

BTW, I think python is still a very cool scripting language and wxPython
is heaven.

Regards,
Brendan Simon.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Barry Scott wrote:

The code was clear to read. It ran as it read...
Personally I perfer the Python style of indenting to alternatives,
the defect rates from indenting are high in C++ in my experience.

  if( foo() )
    bar();
    opss();

This leads to the rule of always using {} even around a single
statement.

I agree that the above C/C++ code is very bad and in my opinion the language definition is slightly to blame. I *always* use { and } around statments; even if it is only one statement. It is reliable and predictable and one can insert and remove statements without affecting the meaning of the code. It is a pitty that the braces are not mandatory :frowning: It would be good if python had something similar.

Regards,
Brendan Simon.

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users