forked from temporalio/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_bridge.py
More file actions
27 lines (24 loc) · 752 Bytes
/
Copy pathsetup_bridge.py
File metadata and controls
27 lines (24 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import shutil
from setuptools import setup
from setuptools_rust import Binding, RustExtension
# Same as in /build.py, but we want this self-contained
rust_extensions = [
RustExtension(
"temporalio.bridge.temporal_sdk_bridge",
path="temporalio/bridge/Cargo.toml",
binding=Binding.PyO3,
py_limited_api=True,
features=["pyo3/abi3-py38"],
# Allow local release builds if requested
debug=False if os.environ.get("TEMPORAL_BUILD_RELEASE") == "1" else None,
)
]
if __name__ == "__main__":
setup(
name="temporalio",
version="1.0",
rust_extensions=rust_extensions,
zip_safe=False,
)
shutil.rmtree("temporalio.egg-info", ignore_errors=True)