Skip to content

Commit 7f61330

Browse files
authored
Merge pull request #1310 from glubsy/build/fix/setuptools_sandbox_deprecation
Remove usage of deprecated setuptools sandbox
2 parents eb4d791 + c9aa6f1 commit 7f61330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
import shutil
1111
from multiprocessing import Pool
1212

13-
from setuptools import sandbox
1413
from hscommon import sphinxgen
1514
from hscommon.build import (
1615
add_to_pythonpath,
1716
print_and_do,
1817
fix_qt_resource_file,
1918
)
2019
from hscommon import loc
20+
import subprocess
2121

2222

2323
def parse_args():
@@ -118,7 +118,7 @@ def build_normpo():
118118
def build_pe_modules():
119119
print("Building PE Modules")
120120
# Leverage setup.py to build modules
121-
sandbox.run_setup("setup.py", ["build_ext", "--inplace"])
121+
subprocess.check_call([sys.executable, "setup.py", "build_ext", "--inplace"])
122122

123123

124124
def build_normal():

0 commit comments

Comments
 (0)