- This renames deltachat.types to deltachat.props. Not re-using a
stdlib name is somewhat nice and solves a weird edge-case for me where
the deltachat.types module can be hiding stdlib types by the deltachat
directory appearing before the stlib on sys.path.
- When manually invoking the build script (rather then via
pip/setup.py) it figures out where the package actually lives and
makes sure the .so file ends up in that directory. This is better
than the current version which depends on the current directory and
thus sometimes creates an alternate deltachat/ directory tree.
- Add some common python artefact files to gitignore.
This uses one global event handler function on the C level, as
enforced by CFFI, and caters for registering a per-context event
handeler. A simple fixture for doing this during tests is also
implemented.
This cleans up the build somewhat:
- Move time_t declaration to _build.py
- Uses Python's distutils to invoke the "correct" compiler. Or at
least does not make this code responsible to picking a compiler
- Uses the compiler to find the installed header file, builds
against this installed version. Since linking will also be
against this installed version this seems to make some sense.
This seems somewhat ugly though.