mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Extract entry point scripts to pyproject.toml
This commit is contained in:
@@ -43,10 +43,23 @@ dynamic = [
|
|||||||
"dependencies",
|
"dependencies",
|
||||||
"license",
|
"license",
|
||||||
"readme",
|
"readme",
|
||||||
"scripts",
|
|
||||||
"version",
|
"version",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
helpviewer = "wx.tools.helpviewer:main"
|
||||||
|
img2png = "wx.tools.img2png:main"
|
||||||
|
img2py = "wx.tools.img2py:main"
|
||||||
|
img2xpm = "wx.tools.img2xpm:main"
|
||||||
|
pycrust = "wx.py.PyCrust:main"
|
||||||
|
pyshell = "wx.py.PyShell:main"
|
||||||
|
pyslices = "wx.py.PySlices:main"
|
||||||
|
pyslicesshell = "wx.py.PySlicesShell:main"
|
||||||
|
pywxrc = "wx.tools.pywxrc:main"
|
||||||
|
wxdemo = "wx.tools.wxget_docs_demo:demo_main" # Get/Launch Demo
|
||||||
|
wxdocs = "wx.tools.wxget_docs_demo:docs_main" # Get/Launch Docs
|
||||||
|
wxget = "wx.tools.wxget:main" # New wx wget
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Documentation = "https://docs.wxpython.org/"
|
Documentation = "https://docs.wxpython.org/"
|
||||||
Download = "https://pypi.org/project/wxPython"
|
Download = "https://pypi.org/project/wxPython"
|
||||||
|
|||||||
@@ -64,5 +64,4 @@ setup(name = 'wx.svg',
|
|||||||
#packages = [PACKAGE],
|
#packages = [PACKAGE],
|
||||||
ext_modules = modules,
|
ext_modules = modules,
|
||||||
options = { 'build' : BUILD_OPTIONS, },
|
options = { 'build' : BUILD_OPTIONS, },
|
||||||
scripts = [],
|
|
||||||
)
|
)
|
||||||
|
|||||||
25
setup.py
25
setup.py
@@ -294,28 +294,6 @@ setuptools.command.build_py.make_writable = wx_make_writable
|
|||||||
|
|
||||||
WX_PKGLIST = [cfg.PKGDIR] + [cfg.PKGDIR + '.' + pkg for pkg in find_packages('wx')]
|
WX_PKGLIST = [cfg.PKGDIR] + [cfg.PKGDIR + '.' + pkg for pkg in find_packages('wx')]
|
||||||
|
|
||||||
ENTRY_POINTS = {
|
|
||||||
'console_scripts' : [
|
|
||||||
"img2png = wx.tools.img2png:main",
|
|
||||||
"img2py = wx.tools.img2py:main",
|
|
||||||
"img2xpm = wx.tools.img2xpm:main",
|
|
||||||
"pywxrc = wx.tools.pywxrc:main",
|
|
||||||
# ],
|
|
||||||
# '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
|
|
||||||
"helpviewer = wx.tools.helpviewer:main",
|
|
||||||
"pycrust = wx.py.PyCrust:main",
|
|
||||||
"pyshell = wx.py.PyShell:main",
|
|
||||||
"pyslices = wx.py.PySlices:main",
|
|
||||||
"pyslicesshell = wx.py.PySlicesShell:main",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
SCRIPTS = []
|
|
||||||
DATA_FILES = []
|
|
||||||
|
|
||||||
HEADERS = None
|
HEADERS = None
|
||||||
BUILD_OPTIONS = { } #'build_base' : cfg.BUILD_BASE }
|
BUILD_OPTIONS = { } #'build_base' : cfg.BUILD_BASE }
|
||||||
#if cfg.WXPORT == 'msw':
|
#if cfg.WXPORT == 'msw':
|
||||||
@@ -340,9 +318,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
options = { 'build' : BUILD_OPTIONS },
|
options = { 'build' : BUILD_OPTIONS },
|
||||||
|
|
||||||
scripts = SCRIPTS,
|
|
||||||
data_files = DATA_FILES,
|
|
||||||
headers = HEADERS,
|
headers = HEADERS,
|
||||||
cmdclass = CMDCLASS,
|
cmdclass = CMDCLASS,
|
||||||
entry_points = ENTRY_POINTS,
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user