Merge pull request #1035 from RobinD42/fix-issue961

include wxpy_api.h
This commit is contained in:
Robin Dunn
2018-10-12 12:13:36 +08:00
committed by GitHub
25 changed files with 32 additions and 27 deletions

View File

@@ -114,6 +114,9 @@ Changes in this release include the following:
features are not part of the build. So far, stubs are available for
wx.Accessible, wx.glcanvas, wx.media and wx.html2.
* Moved the wxpy_api.h file into the wx package at wx/include/wxPython so it
will be included in the wheel file. (#961)

View File

@@ -8,6 +8,7 @@
recursive-include wx **
recursive-include wx/locale **
recursive-include wx/include **
recursive-include license *.txt
include LICENSE.txt
graft docs

View File

@@ -111,7 +111,8 @@ class Configuration(object):
self.WXDIR = wxDir()
self.includes = [phoenixDir() + '/sip/siplib', # to get our version of sip.h
phoenixDir() + '/src', # for any hand-written headers
phoenixDir() + '/wx/include', # for the wxPython API
phoenixDir() + '/src', # for other hand-written headers
]
self.DOXY_XML_DIR = os.path.join(self.WXDIR, 'docs/doxygen/out/xml')

View File

@@ -77,7 +77,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addHeaderCode('#include <wx/help.h>')
module.addImport('_core')

View File

@@ -58,7 +58,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)

View File

@@ -259,7 +259,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addInclude(INCLUDES)
module.includePyCode('src/core_ex.py', order=10)

View File

@@ -58,7 +58,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)

View File

@@ -50,7 +50,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -54,7 +54,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)

View File

@@ -73,7 +73,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)
module.addInclude(INCLUDES)

View File

@@ -55,7 +55,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -59,7 +59,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -53,7 +53,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -56,7 +56,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)

View File

@@ -59,7 +59,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)

View File

@@ -64,7 +64,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode("import wx", order=10)
module.addImport('_xml')

View File

@@ -52,7 +52,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('''\
import wx
@@ -168,8 +168,8 @@ def run():
c.addCppMethod('void', 'MarkerDefineRGBAImage', '(int markerNumber, wxPyBuffer* pixels)',
doc="""\
Define a marker from RGBA data.\n
It has the width and height from RGBAImageSetWidth/Height. You must
ensure that the buffer is at least width*height*4 bytes long.
It has the width and height from RGBAImageSetWidth/Height. You must
ensure that the buffer is at least width*height*4 bytes long.
""",
body="""\
self->MarkerDefineRGBAImage(markerNumber, (unsigned char*)pixels->m_ptr);
@@ -179,7 +179,7 @@ def run():
c.addCppMethod('void', 'RegisterRGBAImage', '(int type, wxPyBuffer* pixels)',
doc="""\
Register an RGBA image for use in autocompletion lists.\n
It has the width and height from RGBAImageSetWidth/Height. You must
It has the width and height from RGBAImageSetWidth/Height. You must
ensure that the buffer is at least width*height*4 bytes long.
""",
body="""\

View File

@@ -52,7 +52,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -54,7 +54,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addPyCode('import wx', order=10)
module.addInclude(INCLUDES)

View File

@@ -51,7 +51,7 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode('#include <wxpy_api.h>')
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
module.addImport('_core')
module.addImport('_xml')
module.addPyCode('''\

View File

@@ -319,7 +319,7 @@ ENTRY_POINTS = {
"img2xpm = wx.tools.img2xpm:main",
"pywxrc = wx.tools.pywxrc:main",
# ],
# 'gui_scripts' : [ # TODO: Why was this done?
# 'gui_scripts' : [ # TODO: Why was this commented out?
"wxget = wx.tools.wxget:main", # New wx wget
"wxdocs = wx.tools.wxget_docs_demo:docs_main", # Get/Launch Docs
"wxdemo = wx.tools.wxget_docs_demo:demo_main", # Get/Launch Demo

View File

@@ -20,7 +20,7 @@
%MappedType size_t {
%TypeHeaderCode
#include <wxpy_api.h>
#include <wxPython/wxpy_api.h>
%End
%ConvertToTypeCode
@@ -48,7 +48,7 @@
%TypeHeaderCode
#include <wx/setup.h>
#include <wxpy_api.h>
#include <wxPython/wxpy_api.h>
%End
%ConvertToTypeCode
@@ -84,7 +84,7 @@
%TypeHeaderCode
#include <wx/setup.h>
#include <wxpy_api.h>
#include <wxPython/wxpy_api.h>
%End
%ConvertToTypeCode

View File

@@ -12,7 +12,7 @@
%ModuleHeaderCode
#include "wxpy_api.h"
#include <wxPython/wxpy_api.h>
%End
//--------------------------------------------------------------------------

View File

@@ -104,7 +104,7 @@ def configure(conf):
conf.env.msvc_relwithdebug = conf.options.msvc_relwithdebug
# Ensure that the headers in siplib and Phoenix's src dir can be found
conf.env.INCLUDES_WXPY = ['sip/siplib', 'src']
conf.env.INCLUDES_WXPY = ['sip/siplib', 'wx/include', 'src']
if isWindows:
# Windows/MSVC specific stuff