mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 13:32:11 +03:00
- better README reflecting how to use things, don't advertise run-integration-tests to only have one documented way and use less tools for rust-devs that just want to run python tests - fix test skipping and get circle-ci to play along - update docker related docs as well
26 lines
661 B
Python
Executable File
26 lines
661 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
"""
|
|
setup a python binding development in-place install with cargo debug symbols.
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
import os
|
|
|
|
if __name__ == "__main__":
|
|
os.environ["DCC_RS_TARGET"] = target = "release"
|
|
if "DCC_RS_DEV" not in os.environ:
|
|
dn = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
os.environ["DCC_RS_DEV"] = dn
|
|
|
|
os.environ["RUSTFLAGS"] = "-g"
|
|
subprocess.check_call([
|
|
"cargo", "build", "-p", "deltachat_ffi", "--" + target
|
|
])
|
|
subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True)
|
|
|
|
subprocess.check_call([
|
|
"pip", "install", "-e", "."
|
|
])
|