py2docfx 0.1.13.dev2016723__py3-none-any.whl → 0.1.13.dev2021865__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
- py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,340 @@
|
|
1
|
+
"""distutils.cygwinccompiler
|
2
|
+
|
3
|
+
Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
|
4
|
+
handles the Cygwin port of the GNU C compiler to Windows. It also contains
|
5
|
+
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
|
6
|
+
cygwin in no-cygwin mode).
|
7
|
+
"""
|
8
|
+
|
9
|
+
import copy
|
10
|
+
import os
|
11
|
+
import pathlib
|
12
|
+
import shlex
|
13
|
+
import sys
|
14
|
+
import warnings
|
15
|
+
from subprocess import check_output
|
16
|
+
|
17
|
+
from ...errors import (
|
18
|
+
DistutilsExecError,
|
19
|
+
DistutilsPlatformError,
|
20
|
+
)
|
21
|
+
from ...file_util import write_file
|
22
|
+
from ...sysconfig import get_config_vars
|
23
|
+
from ...version import LooseVersion, suppress_known_deprecation
|
24
|
+
from . import unix
|
25
|
+
from .errors import (
|
26
|
+
CompileError,
|
27
|
+
Error,
|
28
|
+
)
|
29
|
+
|
30
|
+
|
31
|
+
def get_msvcr():
|
32
|
+
"""No longer needed, but kept for backward compatibility."""
|
33
|
+
return []
|
34
|
+
|
35
|
+
|
36
|
+
_runtime_library_dirs_msg = (
|
37
|
+
"Unable to set runtime library search path on Windows, "
|
38
|
+
"usually indicated by `runtime_library_dirs` parameter to Extension"
|
39
|
+
)
|
40
|
+
|
41
|
+
|
42
|
+
class Compiler(unix.Compiler):
|
43
|
+
"""Handles the Cygwin port of the GNU C compiler to Windows."""
|
44
|
+
|
45
|
+
compiler_type = 'cygwin'
|
46
|
+
obj_extension = ".o"
|
47
|
+
static_lib_extension = ".a"
|
48
|
+
shared_lib_extension = ".dll.a"
|
49
|
+
dylib_lib_extension = ".dll"
|
50
|
+
static_lib_format = "lib%s%s"
|
51
|
+
shared_lib_format = "lib%s%s"
|
52
|
+
dylib_lib_format = "cyg%s%s"
|
53
|
+
exe_extension = ".exe"
|
54
|
+
|
55
|
+
def __init__(self, verbose=False, dry_run=False, force=False):
|
56
|
+
super().__init__(verbose, dry_run, force)
|
57
|
+
|
58
|
+
status, details = check_config_h()
|
59
|
+
self.debug_print(f"Python's GCC status: {status} (details: {details})")
|
60
|
+
if status is not CONFIG_H_OK:
|
61
|
+
self.warn(
|
62
|
+
"Python's pyconfig.h doesn't seem to support your compiler. "
|
63
|
+
f"Reason: {details}. "
|
64
|
+
"Compiling may fail because of undefined preprocessor macros."
|
65
|
+
)
|
66
|
+
|
67
|
+
self.cc, self.cxx = get_config_vars('CC', 'CXX')
|
68
|
+
|
69
|
+
# Override 'CC' and 'CXX' environment variables for
|
70
|
+
# building using MINGW compiler for MSVC python.
|
71
|
+
self.cc = os.environ.get('CC', self.cc or 'gcc')
|
72
|
+
self.cxx = os.environ.get('CXX', self.cxx or 'g++')
|
73
|
+
|
74
|
+
self.linker_dll = self.cc
|
75
|
+
self.linker_dll_cxx = self.cxx
|
76
|
+
shared_option = "-shared"
|
77
|
+
|
78
|
+
self.set_executables(
|
79
|
+
compiler=f'{self.cc} -mcygwin -O -Wall',
|
80
|
+
compiler_so=f'{self.cc} -mcygwin -mdll -O -Wall',
|
81
|
+
compiler_cxx=f'{self.cxx} -mcygwin -O -Wall',
|
82
|
+
compiler_so_cxx=f'{self.cxx} -mcygwin -mdll -O -Wall',
|
83
|
+
linker_exe=f'{self.cc} -mcygwin',
|
84
|
+
linker_so=f'{self.linker_dll} -mcygwin {shared_option}',
|
85
|
+
linker_exe_cxx=f'{self.cxx} -mcygwin',
|
86
|
+
linker_so_cxx=f'{self.linker_dll_cxx} -mcygwin {shared_option}',
|
87
|
+
)
|
88
|
+
|
89
|
+
self.dll_libraries = get_msvcr()
|
90
|
+
|
91
|
+
@property
|
92
|
+
def gcc_version(self):
|
93
|
+
# Older numpy depended on this existing to check for ancient
|
94
|
+
# gcc versions. This doesn't make much sense with clang etc so
|
95
|
+
# just hardcode to something recent.
|
96
|
+
# https://github.com/numpy/numpy/pull/20333
|
97
|
+
warnings.warn(
|
98
|
+
"gcc_version attribute of CygwinCCompiler is deprecated. "
|
99
|
+
"Instead of returning actual gcc version a fixed value 11.2.0 is returned.",
|
100
|
+
DeprecationWarning,
|
101
|
+
stacklevel=2,
|
102
|
+
)
|
103
|
+
with suppress_known_deprecation():
|
104
|
+
return LooseVersion("11.2.0")
|
105
|
+
|
106
|
+
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
|
107
|
+
"""Compiles the source by spawning GCC and windres if needed."""
|
108
|
+
if ext in ('.rc', '.res'):
|
109
|
+
# gcc needs '.res' and '.rc' compiled to object files !!!
|
110
|
+
try:
|
111
|
+
self.spawn(["windres", "-i", src, "-o", obj])
|
112
|
+
except DistutilsExecError as msg:
|
113
|
+
raise CompileError(msg)
|
114
|
+
else: # for other files use the C-compiler
|
115
|
+
try:
|
116
|
+
if self.detect_language(src) == 'c++':
|
117
|
+
self.spawn(
|
118
|
+
self.compiler_so_cxx
|
119
|
+
+ cc_args
|
120
|
+
+ [src, '-o', obj]
|
121
|
+
+ extra_postargs
|
122
|
+
)
|
123
|
+
else:
|
124
|
+
self.spawn(
|
125
|
+
self.compiler_so + cc_args + [src, '-o', obj] + extra_postargs
|
126
|
+
)
|
127
|
+
except DistutilsExecError as msg:
|
128
|
+
raise CompileError(msg)
|
129
|
+
|
130
|
+
def link(
|
131
|
+
self,
|
132
|
+
target_desc,
|
133
|
+
objects,
|
134
|
+
output_filename,
|
135
|
+
output_dir=None,
|
136
|
+
libraries=None,
|
137
|
+
library_dirs=None,
|
138
|
+
runtime_library_dirs=None,
|
139
|
+
export_symbols=None,
|
140
|
+
debug=False,
|
141
|
+
extra_preargs=None,
|
142
|
+
extra_postargs=None,
|
143
|
+
build_temp=None,
|
144
|
+
target_lang=None,
|
145
|
+
):
|
146
|
+
"""Link the objects."""
|
147
|
+
# use separate copies, so we can modify the lists
|
148
|
+
extra_preargs = copy.copy(extra_preargs or [])
|
149
|
+
libraries = copy.copy(libraries or [])
|
150
|
+
objects = copy.copy(objects or [])
|
151
|
+
|
152
|
+
if runtime_library_dirs:
|
153
|
+
self.warn(_runtime_library_dirs_msg)
|
154
|
+
|
155
|
+
# Additional libraries
|
156
|
+
libraries.extend(self.dll_libraries)
|
157
|
+
|
158
|
+
# handle export symbols by creating a def-file
|
159
|
+
# with executables this only works with gcc/ld as linker
|
160
|
+
if (export_symbols is not None) and (
|
161
|
+
target_desc != self.EXECUTABLE or self.linker_dll == "gcc"
|
162
|
+
):
|
163
|
+
# (The linker doesn't do anything if output is up-to-date.
|
164
|
+
# So it would probably better to check if we really need this,
|
165
|
+
# but for this we had to insert some unchanged parts of
|
166
|
+
# UnixCCompiler, and this is not what we want.)
|
167
|
+
|
168
|
+
# we want to put some files in the same directory as the
|
169
|
+
# object files are, build_temp doesn't help much
|
170
|
+
# where are the object files
|
171
|
+
temp_dir = os.path.dirname(objects[0])
|
172
|
+
# name of dll to give the helper files the same base name
|
173
|
+
(dll_name, dll_extension) = os.path.splitext(
|
174
|
+
os.path.basename(output_filename)
|
175
|
+
)
|
176
|
+
|
177
|
+
# generate the filenames for these files
|
178
|
+
def_file = os.path.join(temp_dir, dll_name + ".def")
|
179
|
+
|
180
|
+
# Generate .def file
|
181
|
+
contents = [f"LIBRARY {os.path.basename(output_filename)}", "EXPORTS"]
|
182
|
+
contents.extend(export_symbols)
|
183
|
+
self.execute(write_file, (def_file, contents), f"writing {def_file}")
|
184
|
+
|
185
|
+
# next add options for def-file
|
186
|
+
|
187
|
+
# for gcc/ld the def-file is specified as any object files
|
188
|
+
objects.append(def_file)
|
189
|
+
|
190
|
+
# end: if ((export_symbols is not None) and
|
191
|
+
# (target_desc != self.EXECUTABLE or self.linker_dll == "gcc")):
|
192
|
+
|
193
|
+
# who wants symbols and a many times larger output file
|
194
|
+
# should explicitly switch the debug mode on
|
195
|
+
# otherwise we let ld strip the output file
|
196
|
+
# (On my machine: 10KiB < stripped_file < ??100KiB
|
197
|
+
# unstripped_file = stripped_file + XXX KiB
|
198
|
+
# ( XXX=254 for a typical python extension))
|
199
|
+
if not debug:
|
200
|
+
extra_preargs.append("-s")
|
201
|
+
|
202
|
+
super().link(
|
203
|
+
target_desc,
|
204
|
+
objects,
|
205
|
+
output_filename,
|
206
|
+
output_dir,
|
207
|
+
libraries,
|
208
|
+
library_dirs,
|
209
|
+
runtime_library_dirs,
|
210
|
+
None, # export_symbols, we do this in our def-file
|
211
|
+
debug,
|
212
|
+
extra_preargs,
|
213
|
+
extra_postargs,
|
214
|
+
build_temp,
|
215
|
+
target_lang,
|
216
|
+
)
|
217
|
+
|
218
|
+
def runtime_library_dir_option(self, dir):
|
219
|
+
# cygwin doesn't support rpath. While in theory we could error
|
220
|
+
# out like MSVC does, code might expect it to work like on Unix, so
|
221
|
+
# just warn and hope for the best.
|
222
|
+
self.warn(_runtime_library_dirs_msg)
|
223
|
+
return []
|
224
|
+
|
225
|
+
# -- Miscellaneous methods -----------------------------------------
|
226
|
+
|
227
|
+
def _make_out_path(self, output_dir, strip_dir, src_name):
|
228
|
+
# use normcase to make sure '.rc' is really '.rc' and not '.RC'
|
229
|
+
norm_src_name = os.path.normcase(src_name)
|
230
|
+
return super()._make_out_path(output_dir, strip_dir, norm_src_name)
|
231
|
+
|
232
|
+
@property
|
233
|
+
def out_extensions(self):
|
234
|
+
"""
|
235
|
+
Add support for rc and res files.
|
236
|
+
"""
|
237
|
+
return {
|
238
|
+
**super().out_extensions,
|
239
|
+
**{ext: ext + self.obj_extension for ext in ('.res', '.rc')},
|
240
|
+
}
|
241
|
+
|
242
|
+
|
243
|
+
# the same as cygwin plus some additional parameters
|
244
|
+
class MinGW32Compiler(Compiler):
|
245
|
+
"""Handles the Mingw32 port of the GNU C compiler to Windows."""
|
246
|
+
|
247
|
+
compiler_type = 'mingw32'
|
248
|
+
|
249
|
+
def __init__(self, verbose=False, dry_run=False, force=False):
|
250
|
+
super().__init__(verbose, dry_run, force)
|
251
|
+
|
252
|
+
shared_option = "-shared"
|
253
|
+
|
254
|
+
if is_cygwincc(self.cc):
|
255
|
+
raise Error('Cygwin gcc cannot be used with --compiler=mingw32')
|
256
|
+
|
257
|
+
self.set_executables(
|
258
|
+
compiler=f'{self.cc} -O -Wall',
|
259
|
+
compiler_so=f'{self.cc} -shared -O -Wall',
|
260
|
+
compiler_so_cxx=f'{self.cxx} -shared -O -Wall',
|
261
|
+
compiler_cxx=f'{self.cxx} -O -Wall',
|
262
|
+
linker_exe=f'{self.cc}',
|
263
|
+
linker_so=f'{self.linker_dll} {shared_option}',
|
264
|
+
linker_exe_cxx=f'{self.cxx}',
|
265
|
+
linker_so_cxx=f'{self.linker_dll_cxx} {shared_option}',
|
266
|
+
)
|
267
|
+
|
268
|
+
def runtime_library_dir_option(self, dir):
|
269
|
+
raise DistutilsPlatformError(_runtime_library_dirs_msg)
|
270
|
+
|
271
|
+
|
272
|
+
# Because these compilers aren't configured in Python's pyconfig.h file by
|
273
|
+
# default, we should at least warn the user if he is using an unmodified
|
274
|
+
# version.
|
275
|
+
|
276
|
+
CONFIG_H_OK = "ok"
|
277
|
+
CONFIG_H_NOTOK = "not ok"
|
278
|
+
CONFIG_H_UNCERTAIN = "uncertain"
|
279
|
+
|
280
|
+
|
281
|
+
def check_config_h():
|
282
|
+
"""Check if the current Python installation appears amenable to building
|
283
|
+
extensions with GCC.
|
284
|
+
|
285
|
+
Returns a tuple (status, details), where 'status' is one of the following
|
286
|
+
constants:
|
287
|
+
|
288
|
+
- CONFIG_H_OK: all is well, go ahead and compile
|
289
|
+
- CONFIG_H_NOTOK: doesn't look good
|
290
|
+
- CONFIG_H_UNCERTAIN: not sure -- unable to read pyconfig.h
|
291
|
+
|
292
|
+
'details' is a human-readable string explaining the situation.
|
293
|
+
|
294
|
+
Note there are two ways to conclude "OK": either 'sys.version' contains
|
295
|
+
the string "GCC" (implying that this Python was built with GCC), or the
|
296
|
+
installed "pyconfig.h" contains the string "__GNUC__".
|
297
|
+
"""
|
298
|
+
|
299
|
+
# XXX since this function also checks sys.version, it's not strictly a
|
300
|
+
# "pyconfig.h" check -- should probably be renamed...
|
301
|
+
|
302
|
+
from distutils import sysconfig
|
303
|
+
|
304
|
+
# if sys.version contains GCC then python was compiled with GCC, and the
|
305
|
+
# pyconfig.h file should be OK
|
306
|
+
if "GCC" in sys.version:
|
307
|
+
return CONFIG_H_OK, "sys.version mentions 'GCC'"
|
308
|
+
|
309
|
+
# Clang would also work
|
310
|
+
if "Clang" in sys.version:
|
311
|
+
return CONFIG_H_OK, "sys.version mentions 'Clang'"
|
312
|
+
|
313
|
+
# let's see if __GNUC__ is mentioned in python.h
|
314
|
+
fn = sysconfig.get_config_h_filename()
|
315
|
+
try:
|
316
|
+
config_h = pathlib.Path(fn).read_text(encoding='utf-8')
|
317
|
+
except OSError as exc:
|
318
|
+
return (CONFIG_H_UNCERTAIN, f"couldn't read '{fn}': {exc.strerror}")
|
319
|
+
else:
|
320
|
+
substring = '__GNUC__'
|
321
|
+
if substring in config_h:
|
322
|
+
code = CONFIG_H_OK
|
323
|
+
mention_inflected = 'mentions'
|
324
|
+
else:
|
325
|
+
code = CONFIG_H_NOTOK
|
326
|
+
mention_inflected = 'does not mention'
|
327
|
+
return code, f"{fn!r} {mention_inflected} {substring!r}"
|
328
|
+
|
329
|
+
|
330
|
+
def is_cygwincc(cc):
|
331
|
+
"""Try to determine if the compiler that would be used is from cygwin."""
|
332
|
+
out_string = check_output(shlex.split(cc) + ['-dumpmachine'])
|
333
|
+
return out_string.strip().endswith(b'cygwin')
|
334
|
+
|
335
|
+
|
336
|
+
get_versions = None
|
337
|
+
"""
|
338
|
+
A stand-in for the previous get_versions() function to prevent failures
|
339
|
+
when monkeypatched. See pypa/setuptools#2969.
|
340
|
+
"""
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class Error(Exception):
|
2
|
+
"""Some compile/link operation failed."""
|
3
|
+
|
4
|
+
|
5
|
+
class PreprocessError(Error):
|
6
|
+
"""Failure to preprocess one or more C/C++ files."""
|
7
|
+
|
8
|
+
|
9
|
+
class CompileError(Error):
|
10
|
+
"""Failure to compile one or more C/C++ source files."""
|
11
|
+
|
12
|
+
|
13
|
+
class LibError(Error):
|
14
|
+
"""Failure to create a static library from one or more C/C++ object
|
15
|
+
files."""
|
16
|
+
|
17
|
+
|
18
|
+
class LinkError(Error):
|
19
|
+
"""Failure to link one or more C/C++ object files into an executable
|
20
|
+
or shared library file."""
|
21
|
+
|
22
|
+
|
23
|
+
class UnknownFileType(Error):
|
24
|
+
"""Attempt to process an unknown file type."""
|