mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 10:19:16 +02:00
Improve building of extension a little
- 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 commit is contained in:
parent
e9682ddfee
commit
0fd55137f6
6 changed files with 24 additions and 18 deletions
|
@ -3,7 +3,7 @@ import os
|
|||
import pytest
|
||||
import time
|
||||
from deltachat import Account
|
||||
from deltachat.types import cached_property
|
||||
from deltachat import props
|
||||
from deltachat.capi import lib
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ def acfactory(pytestconfig, tmpdir, request):
|
|||
fin = self._finalizers.pop()
|
||||
fin()
|
||||
|
||||
@cached_property
|
||||
@props.cached
|
||||
def configlist(self):
|
||||
configlist = []
|
||||
for line in open(fn):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue