Commit Graph

108 Commits

Author SHA1 Message Date
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
Robin Dunn
925d729a46 Don't use /FS when building for Py34 either 2017-06-01 10:15:48 -07:00
Robin Dunn
85599b5d66 The /FS flag doesn't exist in the VC++ used when building for Python 2.7 2017-05-07 21:56:44 -07:00
Robin Dunn
d818b94998 Clarify comment 2017-04-26 19:17:40 -07:00
Robin Dunn
c6ad8a4b8a Add flags to create .pdb files for the --msvc-relwithdebug option 2017-04-26 18:30:33 -07:00
Robin Dunn
242e054552 Update copyright year 2017-04-20 17:11:13 -07:00
Robin Dunn
39c9a72d02 fix typo 2017-04-17 17:50:22 -07:00
Robin Dunn
b6ab0b1884 Revert "Adding support for Microsoft Visual C++ Compiler for Python 2.7"
This reverts commit 96dc809236.
2017-04-15 11:26:49 -07:00
James Wettenhall
96dc809236 Adding support for Microsoft Visual C++ Compiler for Python 2.7 2017-03-22 08:40:05 +11:00
Robin Dunn
c524ed1a37 Fix typo re: linking aui library 2016-11-24 10:39:47 -08:00
Robin Dunn
5268ebbc73 Add the rest of the AUI modules and classes 2016-10-27 18:49:41 -07:00
Robin Dunn
8f238ad594 Begin adding wrappers for wx.aui 2016-10-25 19:19:08 -07:00
Robin Dunn
33fadd8c5b Link the _richtext module with the adv lib 2016-10-01 01:16:47 -07:00
Robin Dunn
32a324f73b Some minor cleanup 2016-09-22 09:46:39 -07:00
Robin Dunn
2ef6096405 Fix propgrid build, forgot to add propgrid lib for linking 2016-08-24 17:29:24 -07:00
Robin Dunn
c7130a4366 Fix propgrid rule 2016-08-13 14:47:08 -07:00
Robin Dunn
f73396c479 Starting work on wrapping propgrid 2016-08-13 12:30:44 -07:00