Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
#! /usr/bin/env python
|
2013-11-21 12:17:21 -08:00
|
|
|
# encoding: utf-8
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
2013-10-16 11:31:50 -07:00
|
|
|
import os
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
import sys
|
|
|
|
import subprocess
|
2013-02-19 01:53:30 -08:00
|
|
|
from distutils.core import setup, Command
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
from distutils.extension import Extension
|
2013-04-28 06:53:09 -07:00
|
|
|
from distutils.version import StrictVersion
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
2013-03-27 13:18:24 -07:00
|
|
|
|
2013-11-09 03:26:09 -08:00
|
|
|
script_path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
2013-03-27 13:18:24 -07:00
|
|
|
# Sphinx
|
2013-02-19 01:53:30 -08:00
|
|
|
try:
|
|
|
|
from sphinx.setup_command import BuildDoc
|
|
|
|
except ImportError:
|
|
|
|
class BuildDoc(Command):
|
|
|
|
description = "build documentation using sphinx, that must be installed."
|
|
|
|
user_options = []
|
|
|
|
def initialize_options(self): pass
|
|
|
|
def finalize_options(self): pass
|
|
|
|
def run(self): print("Error: sphinx not found")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
2013-04-03 05:12:28 -07:00
|
|
|
|
|
|
|
# pkg-config
|
|
|
|
def pkg_config(name, require, min_vers=None):
|
|
|
|
try:
|
|
|
|
sys.stdout.write("Checking for " + name + ": ")
|
|
|
|
ver = subprocess.check_output(["pkg-config", "--modversion", require]).decode("utf-8").strip()
|
|
|
|
if min_vers is not None:
|
|
|
|
assert 0 == subprocess.call(["pkg-config", "--atleast-version", min_vers, require])
|
|
|
|
cflags = subprocess.check_output(["pkg-config", "--cflags", require]).decode("utf-8").split()
|
|
|
|
libs = subprocess.check_output(["pkg-config", "--libs", require]).decode("utf-8").split()
|
|
|
|
sys.stdout.write("OK, found " + ver + "\n")
|
|
|
|
return (cflags, libs)
|
|
|
|
except (OSError, subprocess.CalledProcessError):
|
|
|
|
raise SystemExit("Failed to find " + name + " with 'pkg-config'. Please make sure that it is installed and available on your system path.")
|
|
|
|
except (AssertionError):
|
|
|
|
raise SystemExit("Failed to match version. Found: " + ver + " Needed: " + min_vers)
|
|
|
|
|
|
|
|
|
2013-10-16 13:35:44 -07:00
|
|
|
# use cython or pre-generated c files
|
2013-11-09 03:26:09 -08:00
|
|
|
if os.path.exists(os.path.join(script_path, "efl", "eo", "efl.eo.pyx")):
|
2013-10-16 13:35:44 -07:00
|
|
|
module_suffix = ".pyx"
|
2013-10-16 11:31:50 -07:00
|
|
|
min_ver = "0.17.0"
|
|
|
|
try:
|
|
|
|
from Cython.Distutils import build_ext
|
|
|
|
from Cython.Build import cythonize
|
|
|
|
import Cython.Compiler.Options
|
|
|
|
|
2013-10-16 13:35:44 -07:00
|
|
|
assert StrictVersion(Cython.__version__) >= StrictVersion(min_ver)
|
2013-10-28 14:40:17 -07:00
|
|
|
Cython.Compiler.Options.fast_fail = True # Stop compilation on first error
|
|
|
|
Cython.Compiler.Options.annotate = False # Generates HTML files with annotated source
|
|
|
|
Cython.Compiler.Options.docstrings = True # Set to False to disable docstrings
|
2013-10-16 11:31:50 -07:00
|
|
|
|
|
|
|
except (ImportError, AssertionError):
|
2013-11-09 03:26:09 -08:00
|
|
|
print("Requires Cython >= %s (http://cython.org/)" % min_ver)
|
|
|
|
raise
|
2013-10-16 11:31:50 -07:00
|
|
|
else:
|
2013-10-16 13:35:44 -07:00
|
|
|
module_suffix = ".c"
|
2013-10-16 11:31:50 -07:00
|
|
|
from distutils.command.build_ext import build_ext
|
|
|
|
def cythonize(modules, *args, **kwargs):
|
|
|
|
return modules
|
2013-03-01 06:06:38 -08:00
|
|
|
|
2013-10-16 13:35:44 -07:00
|
|
|
|
2013-09-20 02:01:50 -07:00
|
|
|
class CleanGenerated(Command):
|
|
|
|
description = "Clean C and html files generated by Cython"
|
|
|
|
user_options = []
|
|
|
|
def initialize_options(self): pass
|
|
|
|
def finalize_options(self): pass
|
|
|
|
def run(self):
|
2013-10-16 13:35:44 -07:00
|
|
|
for lib in "eo", "evas", "ecore", "edje", "edje/edit", "emotion", "elementary", "utils":
|
2013-11-21 12:17:21 -08:00
|
|
|
for root, dirs, files in os.walk(os.path.join(script_path, "efl", lib)):
|
|
|
|
for f in files:
|
|
|
|
if f.endswith(".c") or f.endswith(".html"):
|
|
|
|
path = os.path.join(root, f)
|
|
|
|
os.remove(path)
|
|
|
|
dbus_ml_path = os.path.join(script_path, "efl", "dbus_mainloop", "dbus_mainloop.c")
|
|
|
|
if os.path.exists(dbus_ml_path):
|
|
|
|
os.remove(dbus_ml_path)
|
2013-09-20 02:01:50 -07:00
|
|
|
|
2013-10-16 13:35:44 -07:00
|
|
|
|
|
|
|
modules = []
|
2013-11-21 12:17:21 -08:00
|
|
|
packages = ["efl"]
|
2013-10-16 13:35:44 -07:00
|
|
|
|
2013-10-16 06:30:08 -07:00
|
|
|
if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
|
2013-03-01 06:06:38 -08:00
|
|
|
|
|
|
|
# Eo
|
|
|
|
eo_cflags, eo_libs = pkg_config('Eo', 'eo', "1.7.99")
|
2013-03-23 06:55:12 -07:00
|
|
|
eina_cflags, eina_libs = pkg_config('Eina', 'eina', "1.7.99")
|
2013-10-16 13:35:44 -07:00
|
|
|
eo_ext = Extension("eo", ["efl/eo/efl.eo"+module_suffix],
|
2013-07-26 08:44:19 -07:00
|
|
|
define_macros = [('EFL_BETA_API_SUPPORT', None)],
|
2013-03-01 06:06:38 -08:00
|
|
|
include_dirs = ['include/'],
|
2013-03-23 09:33:32 -07:00
|
|
|
extra_compile_args = eo_cflags,
|
2013-03-23 06:55:12 -07:00
|
|
|
extra_link_args = eo_libs + eina_libs)
|
2013-03-01 06:06:38 -08:00
|
|
|
modules.append(eo_ext)
|
|
|
|
|
2013-09-20 02:01:50 -07:00
|
|
|
# Utilities
|
2013-09-30 18:56:28 -07:00
|
|
|
utils_ext = [
|
2013-10-24 12:58:09 -07:00
|
|
|
Extension("utils.deprecated", ["efl/utils/deprecated"+module_suffix],
|
|
|
|
include_dirs = ['include/'],
|
|
|
|
extra_compile_args = eo_cflags,
|
|
|
|
extra_link_args = eo_libs + eina_libs),
|
2013-10-16 13:35:44 -07:00
|
|
|
Extension("utils.conversions", ["efl/utils/conversions"+module_suffix],
|
2013-09-30 18:56:28 -07:00
|
|
|
include_dirs = ['include/'],
|
|
|
|
extra_compile_args = eo_cflags,
|
2013-10-24 12:58:09 -07:00
|
|
|
extra_link_args = eo_libs + eina_libs),
|
|
|
|
Extension("utils.logger", ["efl/utils/logger"+module_suffix],
|
|
|
|
include_dirs = ['include/'],
|
|
|
|
extra_compile_args = eo_cflags,
|
|
|
|
extra_link_args = eo_libs + eina_libs),
|
2013-09-30 18:56:28 -07:00
|
|
|
]
|
|
|
|
modules += utils_ext
|
2013-11-21 12:17:21 -08:00
|
|
|
packages.append("efl.utils")
|
2013-09-20 02:01:50 -07:00
|
|
|
|
2013-03-01 06:06:38 -08:00
|
|
|
# Evas
|
|
|
|
evas_cflags, evas_libs = pkg_config('Evas', 'evas', "1.7.99")
|
2013-10-16 13:35:44 -07:00
|
|
|
evas_ext = Extension("evas", ["efl/evas/efl.evas"+module_suffix],
|
2013-03-01 06:06:38 -08:00
|
|
|
include_dirs = ['include/'],
|
2013-03-23 09:33:32 -07:00
|
|
|
extra_compile_args = evas_cflags,
|
2013-03-23 07:10:39 -07:00
|
|
|
extra_link_args = evas_libs + eina_libs)
|
2013-03-01 06:06:38 -08:00
|
|
|
modules.append(evas_ext)
|
|
|
|
|
|
|
|
# Ecore
|
|
|
|
ecore_cflags, ecore_libs = pkg_config('Ecore', 'ecore', "1.7.99")
|
|
|
|
efile_cflags, efile_libs = pkg_config('EcoreFile', 'ecore-file', "1.7.99")
|
2013-10-16 13:35:44 -07:00
|
|
|
ecore_ext = Extension("ecore", ["efl/ecore/efl.ecore"+module_suffix],
|
2013-03-01 06:06:38 -08:00
|
|
|
include_dirs = ['include/'],
|
2013-03-23 09:33:32 -07:00
|
|
|
extra_compile_args = ecore_cflags + efile_cflags,
|
2013-03-23 07:31:19 -07:00
|
|
|
extra_link_args = ecore_libs + efile_libs + eina_libs + evas_libs)
|
2013-03-01 06:06:38 -08:00
|
|
|
modules.append(ecore_ext)
|
|
|
|
|
|
|
|
# Edje
|
|
|
|
edje_cflags, edje_libs = pkg_config('Edje', 'edje', "1.7.99")
|
2013-10-16 13:35:44 -07:00
|
|
|
edje_ext = Extension("edje", ["efl/edje/efl.edje"+module_suffix],
|
2013-03-01 06:06:38 -08:00
|
|
|
include_dirs = ['include/'],
|
2013-03-23 09:33:32 -07:00
|
|
|
extra_compile_args = edje_cflags,
|
2013-03-23 07:31:19 -07:00
|
|
|
extra_link_args = edje_libs + eina_libs + evas_libs)
|
2013-03-01 06:06:38 -08:00
|
|
|
modules.append(edje_ext)
|
2013-05-04 10:15:09 -07:00
|
|
|
|
2013-04-14 04:08:15 -07:00
|
|
|
# Edje_Edit
|
2013-10-30 10:56:40 -07:00
|
|
|
# edje_edit_ext = Extension("edje_edit", ["efl/edje/efl.edje_edit"+module_suffix],
|
|
|
|
# define_macros = [('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)],
|
|
|
|
# include_dirs = ['include/'],
|
|
|
|
# extra_compile_args = edje_cflags,
|
|
|
|
# extra_link_args = edje_libs + eina_libs + evas_libs)
|
|
|
|
# modules.append(edje_edit_ext)
|
2013-03-01 06:06:38 -08:00
|
|
|
|
|
|
|
# Emotion
|
|
|
|
emotion_cflags, emotion_libs = pkg_config('Emotion', 'emotion', "1.7.99")
|
2013-10-16 13:35:44 -07:00
|
|
|
emotion_ext = Extension("emotion", ["efl/emotion/efl.emotion"+module_suffix],
|
2013-03-01 06:06:38 -08:00
|
|
|
include_dirs = ['include/'],
|
2013-03-23 09:33:32 -07:00
|
|
|
extra_compile_args = emotion_cflags,
|
2013-03-23 07:31:19 -07:00
|
|
|
extra_link_args = emotion_libs + eina_libs + evas_libs)
|
2013-03-01 06:06:38 -08:00
|
|
|
modules.append(emotion_ext)
|
|
|
|
|
2013-05-01 14:13:26 -07:00
|
|
|
# Eldbus
|
|
|
|
# eldbus_cflags, eldbus_libs = pkg_config('Eldbus', 'eldbus', "1.7.99")
|
|
|
|
# pydbus_cflags, pydbus_libs = pkg_config('dbus-python', 'dbus-python')
|
2013-10-16 13:35:44 -07:00
|
|
|
# eldbus_ext = Extension("eldbus", ["efl/eldbus/eldbus"+module_suffix],
|
2013-05-06 12:34:26 -07:00
|
|
|
# include_dirs = ['include/'],
|
|
|
|
# extra_compile_args = eldbus_cflags + pydbus_cflags + ecore_cflags,
|
|
|
|
# extra_link_args = eldbus_libs)
|
2013-05-01 14:13:26 -07:00
|
|
|
# modules.append(eldbus_ext)
|
2013-03-01 06:06:38 -08:00
|
|
|
|
2013-04-06 03:46:52 -07:00
|
|
|
# dbus mainloop integration
|
|
|
|
dbus_cflags, dbus_libs = pkg_config('DBus', 'dbus-python', "0.83.0")
|
2013-10-16 11:31:50 -07:00
|
|
|
dbus_ml_ext = Extension("dbus_mainloop",
|
2013-10-16 13:35:44 -07:00
|
|
|
["efl/dbus_mainloop/dbus_mainloop"+module_suffix,
|
2013-04-06 03:46:52 -07:00
|
|
|
"efl/dbus_mainloop/e_dbus.c"],
|
|
|
|
extra_compile_args = dbus_cflags + ecore_cflags,
|
|
|
|
extra_link_args = dbus_libs + ecore_libs)
|
2013-04-07 07:40:21 -07:00
|
|
|
modules.append(dbus_ml_ext)
|
2013-04-06 03:46:52 -07:00
|
|
|
|
2013-03-01 06:06:38 -08:00
|
|
|
# Elementary
|
2013-11-10 22:28:48 -08:00
|
|
|
elm_mods = (
|
|
|
|
#"access",
|
|
|
|
"actionslider",
|
|
|
|
"background",
|
|
|
|
"box",
|
|
|
|
"bubble",
|
|
|
|
"button",
|
|
|
|
"calendar_elm",
|
|
|
|
"check",
|
|
|
|
"clock",
|
|
|
|
"colorselector",
|
|
|
|
"configuration",
|
|
|
|
"conformant",
|
|
|
|
"ctxpopup",
|
|
|
|
"datetime_elm",
|
|
|
|
"dayselector",
|
|
|
|
"diskselector",
|
|
|
|
"entry",
|
|
|
|
"fileselector_button",
|
|
|
|
"fileselector_entry",
|
|
|
|
"fileselector",
|
|
|
|
"flip",
|
|
|
|
"flipselector",
|
|
|
|
"frame",
|
|
|
|
"general",
|
|
|
|
"gengrid",
|
|
|
|
"genlist",
|
|
|
|
"gesture_layer",
|
|
|
|
"glview",
|
|
|
|
"grid",
|
|
|
|
"hover",
|
|
|
|
"hoversel",
|
|
|
|
"icon",
|
|
|
|
"image",
|
|
|
|
"index",
|
|
|
|
"innerwindow",
|
|
|
|
"label",
|
|
|
|
"layout_class",
|
|
|
|
"layout",
|
|
|
|
"list",
|
|
|
|
"mapbuf",
|
|
|
|
"map",
|
|
|
|
"menu",
|
|
|
|
"multibuttonentry",
|
|
|
|
"naviframe",
|
|
|
|
"need",
|
|
|
|
"notify",
|
|
|
|
"object_item",
|
|
|
|
"object",
|
|
|
|
"panel",
|
|
|
|
"panes",
|
|
|
|
"photocam",
|
|
|
|
"photo",
|
|
|
|
"plug",
|
|
|
|
"popup",
|
|
|
|
"progressbar",
|
|
|
|
"radio",
|
|
|
|
"scroller",
|
|
|
|
"segment_control",
|
|
|
|
"separator",
|
|
|
|
"slider",
|
|
|
|
"slideshow",
|
|
|
|
"spinner",
|
|
|
|
#"store",
|
|
|
|
"table",
|
|
|
|
"theme",
|
|
|
|
"thumb",
|
|
|
|
"toolbar",
|
|
|
|
"transit",
|
|
|
|
"video",
|
|
|
|
"web",
|
|
|
|
"window",
|
|
|
|
)
|
2013-03-01 06:06:38 -08:00
|
|
|
|
2013-03-27 13:18:24 -07:00
|
|
|
elm_cflags, elm_libs = pkg_config('Elementary', 'elementary', "1.7.99")
|
2013-11-21 12:17:21 -08:00
|
|
|
|
2013-11-10 22:28:48 -08:00
|
|
|
for m in elm_mods:
|
|
|
|
e = Extension(
|
|
|
|
"elementary." + m,
|
|
|
|
["efl/elementary/" + m + module_suffix],
|
|
|
|
include_dirs = ["include/"],
|
|
|
|
extra_compile_args = elm_cflags,
|
|
|
|
extra_link_args = elm_libs + eina_libs + evas_libs
|
|
|
|
)
|
|
|
|
modules.append(e)
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
2013-11-21 12:17:21 -08:00
|
|
|
packages.append("efl.elementary")
|
|
|
|
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
2013-11-22 16:14:22 -08:00
|
|
|
# Compatibility
|
|
|
|
#compat_packages = ["e_dbus", "ecore", "edje", "elementary", "emotion", "evas"]
|
|
|
|
#packages += compat_packages
|
|
|
|
|
2013-10-16 13:35:44 -07:00
|
|
|
setup(
|
2013-11-21 12:17:21 -08:00
|
|
|
name = "python-efl",
|
|
|
|
fullname = "Python bindings for Enlightenment Foundation Libraries",
|
|
|
|
description = "Python bindings for Enlightenment Foundation Libraries",
|
2013-10-16 13:35:44 -07:00
|
|
|
version = "1.7.99",
|
2013-11-21 12:17:21 -08:00
|
|
|
author = "Gustavo Sverzut Barbieri, Simon Busch, Boris 'billiob' Faure, Davide 'davemds' Andreoli, Fabiano Fidêncio, Bruno Dilly, Tiago Falcão, Joost Albers, Kai Huuhko, Ulisses Furquim",
|
|
|
|
author_email = "dave@gurumeditation.it, kai.huuhko@gmail.com",
|
|
|
|
maintainer = "Kai Huuhko, Davide <davemds> Andreoli",
|
|
|
|
maintainer_email = "kai.huuhko@gmail.com, dave@gurumeditation.it",
|
|
|
|
contact = "Enlightenment developer mailing list",
|
|
|
|
contact_email = "enlightenment-devel@lists.sourceforge.net",
|
2013-10-16 13:35:44 -07:00
|
|
|
url = "http://www.enlightenment.org",
|
|
|
|
license = "GNU Lesser General Public License (LGPL)",
|
|
|
|
cmdclass = {
|
|
|
|
'build_ext': build_ext,
|
|
|
|
'build_doc': BuildDoc,
|
|
|
|
'clean_generated_files': CleanGenerated
|
|
|
|
},
|
2013-11-21 12:17:21 -08:00
|
|
|
packages = packages,
|
|
|
|
ext_package = "efl", # The prefix for ext modules/packages
|
2013-10-16 13:35:44 -07:00
|
|
|
ext_modules = cythonize(modules, include_path=["include"]),
|
|
|
|
)
|