Roberto Fernandez Bautista
9957c58c14
Remove unused function RunPythonMethodWithReturnedString
pcbnewRunPythonMethodWithReturnedString already exists
2 years ago
Marek Roszko
46e301cd7f
Add missing header include that only fails on msys2 ucrt
Weird
2 years ago
Marek Roszko
83ef5fd7d6
Move PGM_BASE to kicommon
2 years ago
Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2 years ago
Marek Roszko
5c20c5732d
We don't need pgm_base to expose pybind to everything
2 years ago
Marek Roszko
34a51d3c21
Make wxPython work under run from build directory on macOS
2 years ago
Marek Roszko
e5f1cfd2b2
Set PYTHONPATH internally for macOS run from build dir
2 years ago
Marek Roszko
11de95778b
Unwrap the FROM_UTF8 macro in favor of direct function
The extern just gets annoying to try to export the func later. We also yeet TO_UTF8 to string_utils.h for parity.
2 years ago
Nimish Telang
51e55dd750
Convert sprintf to snprintf in most files
3 years ago
Ian McInerney
2b1040ae67
Fix compatibility with older wx versions
ToInt was only added in wx 3.1.6 apparently, so for now make them long
types. Fixes bug introduced in 8ce0a84ca7 .
3 years ago
Ian McInerney
1e8cc6855d
Relax wxPython version mismatch check to major.minor
The previous version check failed when the version was even slightly
different, including on the revision field. Theoretically the ABI of the
wx minor versions in use should be the same, so this might work. On the
other hand, with wxPython it could break as well. YOLO.
3 years ago
Seth Hillbrand
a9ed47f06c
Update KICAD6->KICAD7
3 years ago
Marek Roszko
0ff32d20cd
wxS more things
3 years ago
Jon Evans
70ec2f990f
Work around wxPython / wxPropertyGrid fighting over global state
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13280
3 years ago
Stefan
2449f209b1
python version check: fix error message edge case
3 years ago
Jon Evans
5067e82e06
Only run the wxPython version check once
3 years ago
Jon Evans
af0b176f57
Just catch any Python exception, we don't care what it is.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13354
3 years ago
Jon Evans
f4a80903f0
Attempt to handle more edge cases in wxPython version check
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13354
3 years ago
Jon Evans
0a044656e3
Disable scripting and warn when wxPython version doesn't match
3 years ago
Wayne Stambaugh
7155d1af29
Fix a few more compile warnings.
3 years ago
Marek Roszko
44296dfea2
Forcefully ignore PYTHONPATH env variable on Windows
Fix https://gitlab.com/kicad/code/kicad/-/issues/11328
4 years ago
Seth Hillbrand
455e330f3b
Cleanup a few more raw strings
4 years ago
Seth Hillbrand
5881471a52
Don't write bytecode on MacOS
MacOS packages are signed and checked on each run. Since Python lives
inside the package, adding byte code will break the package signature
4 years ago
Seth Hillbrand
098e8f7d9b
Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option"
This reverts commit ea9f960cc1 .
Reverted for updates as this currently breaks kicad-mac-builder
4 years ago
Davide Gerhard
ea9f960cc1
cmake: adding KICAD_MACOSX_APP_BUNDLE option
ADDED: with cmake KICAD_MACOSX_APP_BUNDLE option the user can disable
the macOS app bundle creation when compiling on macOS. This permit to
use/install KiCad like any other *nix platform (/usr/bin, /usr/share,
ecc.). By default, cmake build the app bundle.
4 years ago
qu1ck
0f7c0e3872
PCM implementation
5 years ago
qu1ck
78ab69027d
Add 3rdparty/plugins to plugin search
5 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Wayne Stambaugh
6c3ba1c20b
Coverity issue fixes.
Issues #332032 , #332086 , #332157 , and #332171 .
5 years ago
Jeff Young
0dfb5fcaf9
Error message cleanup.
wxString::Format is redundant in a wxLogXXX call.
Error messages should generally be translatable.
Error messages should use generally consistent sentence forms.
5 years ago
Peter Montgomery
b4f5b6ef3c
Update environment var for Python to allow running from build or install folder
5 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Marek Roszko
0ffabf5e70
Shift the msvc specific pythonhome init
5 years ago
Seth Hillbrand
891e200fc8
Use Python to test for modules (not CPython)
CPython call requires Python 3.8+, so we work around to keep the 3.6
users happy
Fixes https://gitlab.com/kicad/code/kicad/issues/8554
5 years ago
Jon Evans
148ac19386
Fix launching from the build dir after new_python
5 years ago
Marek Roszko
0dbfd28942
Remove unused vars
5 years ago
Seth Hillbrand
c0bc6b1107
Fix compile errors on MSVC
5 years ago
Seth Hillbrand
e050d42658
Re-enable KICAD_SCRIPTING_WXPYTHON
This keeps wxpython behind a build flag for platforms (mingw) that do
not yet support it.
5 years ago
Seth Hillbrand
bf1437899e
Add Python Tool to pcbnew
5 years ago
Seth Hillbrand
c7d188a8d0
Centralizing SCRIPTING class
5 years ago
Seth Hillbrand
192fbfd5e5
Finalize Python Frame
5 years ago
Seth Hillbrand
81d58bcea9
Working python window
5 years ago
Seth Hillbrand
6fbbba8db3
Adding Python shell KIFACE
5 years ago
Seth Hillbrand
f274a00c08
Remove PYTHON_* compile options
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
Jon Evans
1ab17dd2e7
MSVC: don't set python home when running from build dir
This allows you to specify your python home via the
environment and get a working python setup when running
in-place.
5 years ago
Marek Roszko
b21da9672f
Adjust py_sethome for the new path
5 years ago
Marek Roszko
30ba3aa240
Get python loading the new "user scripting" paths
5 years ago
Marek Roszko
2807a37fc0
Create a stock scripting path helper
5 years ago
Marek Roszko
28c6967dbc
Start trying to shuffle around path management
5 years ago