mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Move wxpy_api.h to wx/include/wxPython, so it will be included in the wheel
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
recursive-include wx **
|
recursive-include wx **
|
||||||
recursive-include wx/locale **
|
recursive-include wx/locale **
|
||||||
|
recursive-include wx/include **
|
||||||
recursive-include license *.txt
|
recursive-include license *.txt
|
||||||
include LICENSE.txt
|
include LICENSE.txt
|
||||||
graft docs
|
graft docs
|
||||||
|
|||||||
@@ -111,7 +111,8 @@ class Configuration(object):
|
|||||||
self.WXDIR = wxDir()
|
self.WXDIR = wxDir()
|
||||||
|
|
||||||
self.includes = [phoenixDir() + '/sip/siplib', # to get our version of sip.h
|
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')
|
self.DOXY_XML_DIR = os.path.join(self.WXDIR, 'docs/doxygen/out/xml')
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# 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.addHeaderCode('#include <wx/help.h>')
|
||||||
|
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
|
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
|
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
module.includePyCode('src/core_ex.py', order=10)
|
module.includePyCode('src/core_ex.py', order=10)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode("import wx", order=10)
|
module.addPyCode("import wx", order=10)
|
||||||
module.addImport('_xml')
|
module.addImport('_xml')
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('''\
|
module.addPyCode('''\
|
||||||
import wx
|
import wx
|
||||||
@@ -168,8 +168,8 @@ def run():
|
|||||||
c.addCppMethod('void', 'MarkerDefineRGBAImage', '(int markerNumber, wxPyBuffer* pixels)',
|
c.addCppMethod('void', 'MarkerDefineRGBAImage', '(int markerNumber, wxPyBuffer* pixels)',
|
||||||
doc="""\
|
doc="""\
|
||||||
Define a marker from RGBA data.\n
|
Define a marker from RGBA data.\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.
|
ensure that the buffer is at least width*height*4 bytes long.
|
||||||
""",
|
""",
|
||||||
body="""\
|
body="""\
|
||||||
self->MarkerDefineRGBAImage(markerNumber, (unsigned char*)pixels->m_ptr);
|
self->MarkerDefineRGBAImage(markerNumber, (unsigned char*)pixels->m_ptr);
|
||||||
@@ -179,7 +179,7 @@ def run():
|
|||||||
c.addCppMethod('void', 'RegisterRGBAImage', '(int type, wxPyBuffer* pixels)',
|
c.addCppMethod('void', 'RegisterRGBAImage', '(int type, wxPyBuffer* pixels)',
|
||||||
doc="""\
|
doc="""\
|
||||||
Register an RGBA image for use in autocompletion lists.\n
|
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.
|
ensure that the buffer is at least width*height*4 bytes long.
|
||||||
""",
|
""",
|
||||||
body="""\
|
body="""\
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addPyCode('import wx', order=10)
|
module.addPyCode('import wx', order=10)
|
||||||
module.addInclude(INCLUDES)
|
module.addInclude(INCLUDES)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ def run():
|
|||||||
# Tweak the parsed meta objects in the module object as needed for
|
# Tweak the parsed meta objects in the module object as needed for
|
||||||
# customizing the generated code and docstrings.
|
# customizing the generated code and docstrings.
|
||||||
|
|
||||||
module.addHeaderCode('#include <wxpy_api.h>')
|
module.addHeaderCode('#include <wxPython/wxpy_api.h>')
|
||||||
module.addImport('_core')
|
module.addImport('_core')
|
||||||
module.addImport('_xml')
|
module.addImport('_xml')
|
||||||
module.addPyCode('''\
|
module.addPyCode('''\
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -319,7 +319,7 @@ ENTRY_POINTS = {
|
|||||||
"img2xpm = wx.tools.img2xpm:main",
|
"img2xpm = wx.tools.img2xpm:main",
|
||||||
"pywxrc = wx.tools.pywxrc: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
|
"wxget = wx.tools.wxget:main", # New wx wget
|
||||||
"wxdocs = wx.tools.wxget_docs_demo:docs_main", # Get/Launch Docs
|
"wxdocs = wx.tools.wxget_docs_demo:docs_main", # Get/Launch Docs
|
||||||
"wxdemo = wx.tools.wxget_docs_demo:demo_main", # Get/Launch Demo
|
"wxdemo = wx.tools.wxget_docs_demo:demo_main", # Get/Launch Demo
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
%MappedType size_t {
|
%MappedType size_t {
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <wxpy_api.h>
|
#include <wxPython/wxpy_api.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
%ConvertToTypeCode
|
%ConvertToTypeCode
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <wx/setup.h>
|
#include <wx/setup.h>
|
||||||
#include <wxpy_api.h>
|
#include <wxPython/wxpy_api.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
%ConvertToTypeCode
|
%ConvertToTypeCode
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <wx/setup.h>
|
#include <wx/setup.h>
|
||||||
#include <wxpy_api.h>
|
#include <wxPython/wxpy_api.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
%ConvertToTypeCode
|
%ConvertToTypeCode
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%ModuleHeaderCode
|
%ModuleHeaderCode
|
||||||
#include "wxpy_api.h"
|
#include <wxPython/wxpy_api.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|||||||
2
wscript
2
wscript
@@ -104,7 +104,7 @@ def configure(conf):
|
|||||||
conf.env.msvc_relwithdebug = conf.options.msvc_relwithdebug
|
conf.env.msvc_relwithdebug = conf.options.msvc_relwithdebug
|
||||||
|
|
||||||
# Ensure that the headers in siplib and Phoenix's src dir can be found
|
# 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:
|
if isWindows:
|
||||||
# Windows/MSVC specific stuff
|
# Windows/MSVC specific stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user