Commit Graph

147 Commits

Author SHA1 Message Date
Davide Andreoli 3ca71a067e Dropped python 2.6 support
and deprecate all versions of python 2, with a big-fat warning.
Python2 support will be fully removed in a later release.
2021-12-05 16:13:22 +01:00
Davide Andreoli 9dce9ccad4 setup: stop importing the version from sources
This was creating all sort of issues, because the efl modules in sources
are not meant to work. And installation from sdist using pip was
complainig about efl not found (because it build in a restricted env)

So just read the __init__.py file and extract the version from there
(to be DRY)
2021-12-05 12:24:38 +01:00
Davide Andreoli 7141f21f0b setup: disjoint pythonefl version from efl version
minor version of bindings and efl are not always the same
2021-12-05 12:04:09 +01:00
Davide Andreoli fabcef1278 setup: Factorize reading files and cmd exec 2021-12-05 12:00:47 +01:00
Davide Andreoli a0a6d756b5 Fix install using pip
pip run setup.py bdist_wheel so we need to take that into account

this also fix generation of wheels in general
2021-12-05 10:43:36 +01:00
Davide Andreoli e467b3e871 Change build tool from distutils to setuptools
This is needed for publishing on pip
2021-12-03 08:37:56 +01:00
Davide Andreoli 2d0668c548 A bit of linting 2021-11-18 07:22:27 +01:00
Davide Andreoli 25ed1cc567 Fix build after README rename
whopsss
2021-11-14 20:24:02 +01:00
Davide Andreoli 5a02f13210 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
2020-06-25 18:54:03 +02:00
Davide Andreoli 3b0552259d Silence Cython warnings
I'm keeping python 2 style for compatibility reasons
2019-04-23 08:55:29 +02:00
Davide Andreoli 583f42b131 Setup warnings-- 2018-08-17 10:52:42 +02:00
Davide Andreoli 26607a0986 Changes to make cython 0.28 happy
This just refactor how the extensions are named, nothing
is changed in the final layout of the package.

Renamed the dbus extension, that was indeed the only
one with a different naming scheme.

Also raised the minimum cython version a bit, min is
now at 0.23.5, that is still quite old. The oldest
ones seems to not like the new naming scheme.
2018-03-19 21:16:53 +01:00
Davide Andreoli 64584362b7 setup.py: clean ecore_input files in CleanGenerated 2017-07-16 20:28:44 +02:00
Davide Andreoli 0b03f8b2f3 some cc don't like the way cython use EINA_LOG macros
In some system we saw the compilation fail with this error:
efl/eo/efl.eo.c:1137:60: error: format not a string literal and no format arguments [-Werror=format-security]
   EINA_LOG_DOM_INFO(__pyx_v_3efl_2eo_PY_EFL_EO_LOG_DOMAIN, __pyx_k_Initializing_efl_eo);

so just ignore those warnings
2016-10-24 21:15:03 +02:00
Davide Andreoli 9e25d34920 warnings-- 2016-10-14 23:04:27 +02:00
Davide Andreoli e0d892ecaa Silence some false compiler warnings
This make the output a lot more readable, we can now spot real warnings
2016-10-14 22:43:19 +02:00
Kai Huuhko b2af779d7d Switch enums to use the old system we had previously
This allows us to support Cython 0.23+
2016-08-16 10:11:34 +03:00
Kai Huuhko 0ef56b3a58 setup.py: Fix error handling in uninstall command 2016-08-14 05:03:34 +03:00
Kai Huuhko c955d488f9 setup.py: Blacklist Cython 0.24 2016-08-14 04:41:11 +03:00
Kai Huuhko a575effa6b setup.py: Check that pregenerated files are available when requested 2016-08-14 04:27:45 +03:00
Davide Andreoli f3e6315413 Add a new module: ecore_input
as always with docs and example
2016-01-08 22:18:49 +01:00
Davide Andreoli 17df9e69aa Revamp old and broken EthumbClient module
This was not functional at all, so I broke the API "a bit"
2016-01-03 18:50:33 +01:00
Davide Andreoli eaf3110089 A new ecore module: ecore_con
It's now super easy to perform various network task in a full efl fashion.
Implemented "Lookup" for dns query and "Url" to perform http requests.
"Server" will come soon.

Comes with quite complete docs, examples and unit tests
2015-11-16 20:45:07 +01:00
Davide Andreoli df1719d4c9 Blacklist Cython 0.23.X
The 0.23 series break our enum usage, 0.24 will come with a new enum
system, so wait for it and blacklist the broken one for now.
2015-10-06 20:54:49 +02:00
Davide Andreoli 4ad8fc60ae Fix build when ecore-x is not available 2015-07-12 19:35:55 +02:00
Kai Huuhko a1f36bb073 Elm: Unify modules into a monolithic module 2015-05-07 22:37:48 +03:00
Kai Huuhko 149f7d1278 setup.py: Fix Cython specific options
**SPANK SPANK SPANK!!**  Dave has been naughty.

build_ext must be imported from Cython in order for options like
 --cython-dbg to be understood by the setup script.
2015-03-21 10:08:25 +02:00
Kai Huuhko 4af81e96a7 Evas.SmartObject: rewrite because of changes in Cython 0.21.1
Unfortunately it was impossible to keep api compatibility.

Compiles but didn't test it yet, need to rewrite the tests and
examples too.
2015-03-07 21:38:08 +02:00
Kai Huuhko d3357619f7 Evas: Bring back SmartObject
Possible TODO: support per-child delete cb like in C
2015-03-05 21:07:38 +02:00
Kai Huuhko 2ce228be96 Elementary: Add module systray
Test/example needs more work
2015-02-21 05:41:14 +02:00
Davide Andreoli abbccd84aa Correct commit count
The current method of counting commits give a wrong number. This lets git do the counting.

patch by Doug Newgard slightly modified by me
2015-02-16 22:30:58 +01:00
Davide Andreoli c6508c52bb Include the betaX in dist package name.
This will generate the 1.13.0-beta1 pre-release
2015-02-07 11:25:51 +01:00
Davide Andreoli d4572bf26a Keep track of installed files by py version
Now you can install/uninstall using more than one python versions
2015-01-20 01:58:57 +01:00
Davide Andreoli 4a533f73df New setup.py command: test
This command run all the available unit test, will be used also in jenkins
2015-01-20 01:35:27 +01:00
Davide Andreoli 129c801aea Nother try to make cython happy on jenkins 2015-01-17 21:03:45 +01:00
Davide Andreoli 9cee723e44 Use LooseVersion (instead of pkg-config) to check required version.
This again to try fixing the build on jenkins
2015-01-17 20:29:09 +01:00
Davide Andreoli 85b27c161e Autodetect ecore x 2015-01-06 23:13:14 +01:00
Davide Andreoli f9e8906724 Use new cython cpdef-enums in evas
cpdef enums are automatically exported to C and
to python, no more need for the enums file and
the duplicated definition for py.

This is a cython 0.21 feature so from now on you will
need at least that version.

Require some <int> cast here and there, but a totally
win in the end.
2015-01-04 20:44:45 +01:00
Davide Andreoli 625503bf11 Provide the uninstall command for python-efl itself 2015-01-04 16:00:15 +01:00
Davide Andreoli 6d2e2e9d8e Reworked CleanGenerated, more verbose now 2015-01-04 13:45:42 +01:00
Davide Andreoli 0873394260 disable ecore_x by default 2015-01-04 13:15:29 +01:00
Davide Andreoli 863efc19eb Move ecore_x out of the ecore extension
Now ecore do not more looks like an alien with his __init__
hack and his different module/package structure

This broke ecore.x users as the extension is now efl.ecore_x

Sorry to bother but I still think that ecore_x should not be
implemented in python, if this hurt you please let me know
2015-01-04 12:47:40 +01:00
Davide Andreoli bb8deff060 Revert "Try to fix a weired error we are getting on Jenkins"
This reverts commit 01105db325.

not needed, did not helped with the jenkins build :(
2015-01-02 14:39:39 +01:00
Davide Andreoli 01105db325 Try to fix a weired error we are getting on Jenkins
I cannot reproduce the error in any way here, so just blindly try this
2015-01-02 14:14:08 +01:00
Davide Andreoli 08170d1fd4 Disable evas.SmartObject to workaround Cython brakage.
SmartObject do work fully in real, thay probably need a full rewrite,
so this should not harm at all.

Also disabled tests and examples
2015-01-02 13:25:44 +01:00
Davide Andreoli 1a3fa101e1 Changed the way we check and enable Cython usage
* Cython is disable by default in dist tarballs (checking if Makefile exists)
* Cython is enabled by default in git version
* Only blacklist Cython in py3 (it is broken only there)
* Now respect two env vars: DISABLE_CYTHON or ENABLE_CYTHON
* Always use LooseVersion for checking Cython version
2015-01-02 12:26:33 +01:00
Davide Andreoli 03f2f286e2 setup.py: no need to use cython build_ext
Seems to me that cythonize() is doing the same work, need some testing
2015-01-02 10:29:27 +01:00
Davide Andreoli c4bbbcf3dc Another cython version to blacklist :( 2015-01-02 10:15:20 +01:00
Davide Andreoli c0f2f5b379 setup.py: be more verbose about python and cython versions 2015-01-02 01:09:40 +01:00
Davide Andreoli 379aef8950 setup.py cleanups: indentation 2015-01-01 22:08:09 +01:00