davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=5a02f132107abc6a7d022eb349f7ff6338b71feb
commit 5a02f132107abc6a7d022eb349f7ff6338b71feb Author: Dave Andreoli <d...@gurumeditation.it> Date: Thu Jun 25 18:54:03 2020 +0200 Do not fail when build with CC="clang" clang seems much better in building elementary, while gcc need a lot of ram and tend to fail badly So for now on clang is the suggested compiler to use --- setup.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 3ed0028..a863a19 100755 --- a/setup.py +++ b/setup.py @@ -211,13 +211,17 @@ ext_modules = [] py_modules = [] packages = ["efl"] common_cflags = [ - "-fno-var-tracking-assignments", # seems to lower the mem used during build - "-Wno-misleading-indentation", # not needed (we don't indent the C code) - "-Wno-deprecated-declarations", # we bind deprecated functions - "-Wno-unused-variable", # eo_instance_from_object() is unused - "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros - # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings + "-fno-var-tracking-assignments", # seems to lower the mem used during build + "-Wno-misleading-indentation", # not needed (we don't indent the C code) + "-Wno-deprecated-declarations", # we bind deprecated functions + "-Wno-unused-variable", # eo_instance_from_object() is unused + "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros + # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings ] +# remove clang unknown flags +if os.getenv("CC") == "clang": + common_cflags.remove('-fno-var-tracking-assignments') + if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): sys.stdout.write("Python-EFL: %s\n" % RELEASE) --