14
14
15
15
import os
16
16
import pathlib
17
- import subprocess
18
-
19
17
import setuptools
20
18
import setuptools .command .build_py
21
19
from wheel .bdist_wheel import bdist_wheel as _bdist_wheel
@@ -33,30 +31,6 @@ def finalize_options(self):
33
31
_bdist_wheel .finalize_options (self )
34
32
35
33
36
- class BuildPyCommand (setuptools .command .build_py .build_py ):
37
- """Download a prebuilt version of livekit_ffi"""
38
-
39
- def run (self ):
40
- download_script = here / "rust-sdks" / "download_ffi.py"
41
- output = here / "livekit" / "rtc" / "resources"
42
- cmd = [
43
- "python3" ,
44
- str (download_script .absolute ()),
45
- "--output" ,
46
- str (output .absolute ()),
47
- ]
48
-
49
- # cibuildwheel is crosscompiling to arm64 on macos, make sure we download the
50
- # right binary (kind of a hack here...)
51
- if os .environ .get ("CIBUILDWHEEL" ) == "1" and "arm64" in os .environ .get (
52
- "ARCHFLAGS" , ""
53
- ):
54
- cmd += ["--arch" , "arm64" ]
55
-
56
- subprocess .run (cmd , check = True )
57
- setuptools .command .build_py .build_py .run (self )
58
-
59
-
60
34
setuptools .setup (
61
35
name = "livekit" ,
62
36
version = about ["__version__" ],
@@ -66,7 +40,6 @@ def run(self):
66
40
url = "https://github.com/livekit/python-sdks" ,
67
41
cmdclass = {
68
42
"bdist_wheel" : bdist_wheel ,
69
- "build_py" : BuildPyCommand ,
70
43
},
71
44
classifiers = [
72
45
"Intended Audience :: Developers" ,
0 commit comments