124 Commits

Author SHA1 Message Date
Scott Talbert
c9f0e39100 Add support for building on Windows ARM64
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
2025-03-16 19:25:56 -04:00
Scott Talbert
bf2a6554e2 Remove textwrap backport - textwrap added in Python 3.4 2025-02-03 20:27:43 -05:00
Edouard Choinière
e56e248767 Remove attrdict3 build dependency and use plain dict 2025-01-18 23:34:11 +00:00
Scott Talbert
c4d944b582 Use unmodified WAF check_python_headers on Windows
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
Unsure why this was needed in the first place as it seems to build fine now.
Presumably lots of things have been fixed in WAF since this was a problem.
2024-09-01 10:10:57 -04:00
Robin Dunn
f56d65daaa Migrate CI from Azure Pipelines to GitHub Actions
Some checks are pending
ci-build / build-source-dist (push) Waiting to run
ci-build / build-wheels (x64, macos-13, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Blocked by required conditions
* Add --quiet option

* First pass on github workflow for CI

* Comment out the 2nd job for now

* Changes and tweaks from what I learned in a test project

* We also need to run the dox command

* Set PYTHONUNBUFFERED in the workflow

* Copy sip.h when the siplib is (re)created, instead of later during the build

* generate version modules in cmd_sdist too

* More fixes for building an sdist in a clean folder

* install gettext

* sudo

* Add build-wheels job

* add apt update

* Explicitly install libunwind-dev to workaround a package dependency bug

* Split the generate and the sdist step into 2 steps.

* fixes for building sdist on Windows, and also enable some additional MSVC info when building

* Use ilammy/msvc-dev-cmd to set up MSVC

* Comment out some no longer needed debug prints

* Add remaining matrix entries

* Uninstall wxPython at the end of the test, turn off fail-fast.

* uninstall --yes

* Add builds for Python 3.12 and 3.13

* Pin setuptools to < 74 on Windows due to removal of setuptools.msvc

* Remove Azure pipelines

* Try building on macOS x86 (not ARM)

* Update actions versions to non-deprecated ones

* Use macOS 13 (-large images seem to not be available on free accounts)

* avoid using -latest to avoid surprises later

* fix typo

* Remove checkout step from matrix (shouldn't be needed?)

* Revert "Remove checkout step from matrix (shouldn't be needed?)"

This reverts commit 385ef5c832.

---------

Co-authored-by: Scott Talbert <swt@techie.net>
2024-09-01 10:06:02 -04:00
Scott Talbert
fd8781c97a Update sip to v6.8.5 2024-07-07 16:42:10 -04:00
Scott Talbert
ba0d8cfcec wscript: Use EXT_SUFFIX when available to fix build on Py 3.11
This is a backport of a an upstream fix in waf's check_python_headers().

See: 8d6cbb3657
2022-11-07 11:49:27 -05:00
Markus Mützel
a8f74c5d32 Simplify building with MinGW toolchain
Add a waf option `--no_msvc` that switches from a MSVC toolchain to a MinGW toolchain on Windows.
2022-07-11 19:14:22 +02:00
Scott Talbert
90171ba216 Update to use sip 6.6.x
1) Switch to running sip using its new sip-build command line interface,
   which requires writing out a pyproject.toml to configure it.
2) Generate the sip build file (sbf) ourselves since sip no longer writes
   them.
3) Remove the embedded sip module code and generate it on the fly during
   the build process.

Fixes #2169.
2022-06-18 13:54:17 -04:00
Robin Dunn
3218e4d42f Use MSVCinfo in the waf script to help set up the compiler for the wxPython build 2022-05-15 11:37:43 -07:00
Robin Dunn
4488663deb A little cleanup and add 3.10 to list for runtime DLL selection 2021-12-02 16:15:39 -08:00
Robin Dunn
1846e5c7e6 Set the minimum python to 3.6.0 2021-11-30 15:54:15 -08:00
Robin Dunn
af2c2b63c6 Add wx.FullScreenEvent 2021-07-24 16:01:37 -07:00
Robin Dunn
c8e25b79e1 Run SIP via its Python interface rather than as a separate subprocess 2021-01-05 11:01:25 -08:00
Robin Dunn
201228c529 Improve code to use the same CC and CXX as wxWidgets, including flags that may be added on to wx's CC/CXX. 2020-12-01 16:19:38 -08:00
Robin Dunn
a4ae17284e Also check for msvc_version 14.2 2020-06-17 13:11:34 -07:00
Per A. Brodtkorb
426258b7b7 Adding missing close for open and replaced "fid=open(filename) fid.close()"
statements with the safer "with open(filename) as fid:" blocks.

Also removed unnecessary "try: ... finally: pass" statements
and refactored code from img2py function into _write_image and _replace_non_alphanumeric_with_underscore

Fixes #1574
2020-03-25 10:36:38 +01:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
5755ca2ce6 Import setuptools in wscript too 2019-10-31 16:48:37 -07:00
Robin Dunn
168dc2ad48 Also include the vcredist DLLs for Python 3.8 2019-10-17 16:40:25 -07:00
Robin Dunn
00e2844dec Copy sip.h into the wx/include/wxPython folder 2019-09-12 14:35:14 -07:00
Robin Dunn
6a4dc562d2 Copy the .rc file and build separately for each extension module
(cherry picked from commit f57961ca0e)
2019-06-22 19:23:27 -07:00
Robin Dunn
b7d0902004 Switch back to the default conf.check_python_headers for darwin
(cherry picked from commit 77daf71259)
2019-06-22 19:23:27 -07:00
Robin Dunn
5e603ea3b4 Clamp down to "14.0" build version for Py36 too. 2019-06-06 21:00:27 -07:00
Robin Dunn
90fd88f45d Instead of doing conditional requirements, add the backports we need to buildtools.backports 2019-06-03 21:33:23 -07:00
Robin Dunn
e234a65cd7 Use textwrap3 on Python 2 2019-05-31 08:57:15 -07:00
Robin Dunn
ff1d5402a1 Python 2.7 doesn't have indent 2019-05-27 22:51:53 -07:00
Robin Dunn
cf35065141 Print the compiler version information on posix builds 2019-05-27 22:06:49 -07:00
Robin Dunn
882b764bef Change where the debug flags are added to ensure they come after the default -O3 typically added by Python
(cherry picked from commit 3499ed6ac9)
2019-05-21 10:07:17 -07:00
Robin Dunn
5b30070698 Merge pull request #1227 from swt2c/fix_build_python3.8
Fix building with Python 3.8 on Linux

(cherry picked from commit c74a933c94)
2019-05-19 20:07:02 -07:00
Robin Dunn
221a98e902 Merge pull request #1223 from RobinD42/more-build-tweaks
More build tweaks

(cherry picked from commit d1b79db2a9)
2019-05-13 19:59:29 -07:00
Robin Dunn
40e5ce8bc4 Merge pull request #1208 from RobinD42/some-build-fixes
Enable wxPython's build to check results of wxWidgets configuration

(cherry picked from commit a6f6fff928)
2019-04-17 18:33:16 -07:00
Robin Dunn
e9e3736fa0 Merge pull request #1035 from RobinD42/fix-issue961
include wxpy_api.h

(cherry picked from commit 7300aa4718)
2018-10-11 21:15:10 -07:00
Robin Dunn
ac1a323144 Merge pull request #1026 from RobinD42/sip-4.19.13
Switch to SIP 4.19.13

(cherry picked from commit a268da9b84)
2018-10-03 19:25:45 -07:00
Robin Dunn
03e6abf33e Merge pull request #912 from RobinD42/fix-issue904
Fix linux linking, update waf, etc.
(cherry picked from commit 7a7231aa1e)
2018-07-04 00:41:49 -07:00
Robin Dunn
f418dde5d8 Merge pull request #893 from RobinD42/fix-darwin-linking
Fix darwin linking
(cherry picked from commit de143e9d83)
2018-06-22 22:46:44 -07:00
Robin Dunn
3f79d925a5 Add some messages for waf to print while it is running wx-config 2018-06-18 23:33:43 -07:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
c53f5b01ca Minor tweaks for some comments 2018-05-30 17:02:10 -07:00
Robin Dunn
ecbf517ed2 Merge pull request #860 from RobinD42/fix-issue857
Add builders for Python 3.7
(cherry picked from commit 430c61b1bf)
2018-05-19 19:26:03 -07:00
Robin Dunn
ff4f32c309 Merge pull request #846 from RobinD42/update-waf
Update waf to version 2.0.7
(cherry picked from commit 7a90868c85)
2018-05-05 22:56:39 -07:00
Robin Dunn
deb21aa2ed Merge branch 'master' into port-gizmos 2017-12-06 13:15:14 -08:00
Robin Dunn
d3ac0d6ab6 Set min target OSX version here too 2017-11-21 16:09:03 -08:00
Robin Dunn
52711eee4f Merge branch 'master' into port-gizmos 2017-11-03 16:52:37 -07:00
Robin Dunn
666761337b Update SIP to 4.19.4 2017-11-02 21:39:05 -07:00
Robin Dunn
17643e9cd1 Port the LEDNumberCtrl from wxCode/gizmos in Classic 2017-10-27 17:21:59 -07:00
Robin Dunn
541c4882da Add an item to wx.PlatformInfo and wx.__version__ indicating build type:
Development, snapshot or release
2017-09-27 17:25:37 -07:00
Robin Dunn
34630a5707 Add --gtk2 option.
Default to building for gtk3.
Keep --gtk3 flag for compatibility.
2017-08-14 15:31:17 -07:00
Robin Dunn
0879cdc240 Ensure that the locale message catalogs are included in the source and binary archives. 2017-08-11 15:46:04 -07:00
Robin Dunn
e5b4c33421 (re)fetch the license files from wxWidgets when building the sdist,
and ensure it is included in the distribution.
2017-06-23 12:10:23 -07:00