diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-11-06 17:01:39 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-01-12 03:34:47 +0100 |
commit | 976b20e0430a450c33a53970a089b5c001a1b42e (patch) | |
tree | 36a4c2fc90923d31b1c426762c6d18225d4b0e9e /custom | |
parent | c1d6f4a527723728aeb28026f62461c146e3b716 (diff) | |
download | sip4-tqt-976b20e0430a450c33a53970a089b5c001a1b42e.tar.gz sip4-tqt-976b20e0430a450c33a53970a089b5c001a1b42e.zip |
Rename sip into sip-tqt in order to be conflict free with upstream.
This relates to bug 2699.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/custom.c | 6 | ||||
-rw-r--r-- | custom/customw.c | 6 | ||||
-rw-r--r-- | custom/mkcustom.py | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/custom/custom.c b/custom/custom.c index f7888af..013f988 100644 --- a/custom/custom.c +++ b/custom/custom.c @@ -14,11 +14,11 @@ int main(int argc, char **argv) * to be a builtin in the custom interpreter. The name of the function * will be the name of the module with "init" prepended. The modules * must be built as static libraries (using the -k flag to configure.py - * for SIP and PyTQt). + * for SIP-TQt and PyTQt). */ /* The sip module will be builtin. */ - extern void initsip(void); + extern void initsip_tqt(void); /* * Uncomment these (and in the structure below) to include the PyTQt @@ -40,7 +40,7 @@ int main(int argc, char **argv) * the builtin modules. */ struct _inittab builtin_modules[] = { - {"sip", initsip}, + {"sip_tqt", initsip_tqt}, /* {"qt", initqt},*/ /* {"qtaxcontainer", initqtaxcontainer},*/ /* {"qtcanvas", initqtcanvas},*/ diff --git a/custom/customw.c b/custom/customw.c index 087a4b9..e554f2b 100644 --- a/custom/customw.c +++ b/custom/customw.c @@ -18,11 +18,11 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, * to be a builtin in the custom interpreter. The name of the function * will be the name of the module with "init" prepended. The modules * must be built as static libraries (using the -k flag to configure.py - * for SIP and PyTQt). + * for SIP-TQt and PyTQt). */ /* The sip module will be builtin. */ - extern void initsip(void); + extern void initsip_tqt(void); /* * Uncomment these (and in the structure below) to include the PyTQt @@ -44,7 +44,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, * the builtin modules. */ struct _inittab builtin_modules[] = { - {"sip", initsip}, + {"sip_tqt", initsip_tqt}, /* {"qt", initqt},*/ /* {"qtaxcontainer", initqtaxcontainer},*/ /* {"qtcanvas", initqtcanvas},*/ diff --git a/custom/mkcustom.py b/custom/mkcustom.py index 0e8deab..94f7021 100644 --- a/custom/mkcustom.py +++ b/custom/mkcustom.py @@ -1,4 +1,4 @@ -"""This Python script uses the SIP build system to create a Makefile for +"""This Python script uses the SIP-TQt build system to create a Makefile for building a custom Python interpreter. The script doesn't take any command line flags - just edit it to suit your needs. You will also need to edit custom.c or customw.c. @@ -6,11 +6,11 @@ or customw.c. import sys -import sipconfig +import sip_tqt_config -# Get the SIP configuration. -cfg = sipconfig.Configuration() +# Get the SIP-TQt configuration. +cfg = sip_tqt_config.Configuration() # This is the name of the interpreter executable (excluding any platform @@ -50,7 +50,7 @@ if sys.platform == "linux2": # Create a dictionary describing the target and source files to be passed to -# the SIP build system. +# the SIP-TQt build system. build = {} if sys.platform == "win32" and WindowsInterpreter: @@ -66,7 +66,7 @@ else: qt = (cfg.qt_version > 0) # Create the Makefile instance. -mf = sipconfig.ProgramMakefile(cfg, build, python=True, console=console, qt=qt) +mf = sip_tqt_config.ProgramMakefile(cfg, build, python=True, console=console, qt=qt) # Modify the Makefile according to the values set above. mf.extra_lib_dirs.extend(ExtraLibraryDirectories) |