diff options
author | Morten Tokle <mortent@yahooinc.com> | 2022-12-14 11:30:09 +0100 |
---|---|---|
committer | Morten Tokle <mortent@yahooinc.com> | 2022-12-14 11:30:09 +0100 |
commit | 127e5511ff1a796f5baff9bb0ca8315d29a1efda (patch) | |
tree | b8abbd839ff633021c1517a3a00b5c17e84df4cf /ann_benchmark | |
parent | 84e7048acbc7750ab5096a9cc09480e9d520977d (diff) |
os-system -> subprocess.run
Diffstat (limited to 'ann_benchmark')
-rw-r--r-- | ann_benchmark/src/vespa/ann_benchmark/setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ann_benchmark/src/vespa/ann_benchmark/setup.py b/ann_benchmark/src/vespa/ann_benchmark/setup.py index 74f4e2d7307..d5d2bfbd171 100644 --- a/ann_benchmark/src/vespa/ann_benchmark/setup.py +++ b/ann_benchmark/src/vespa/ann_benchmark/setup.py @@ -1,6 +1,6 @@ # Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -import os +import subprocess import sys import platform import distutils.sysconfig @@ -11,8 +11,8 @@ class PreBuiltExt(build_ext): def build_extension(self, ext): print("Using prebuilt extension library") libdir="lib.%s-%s-%s" % (sys.platform, platform.machine(), distutils.sysconfig.get_python_version()) - os.system("mkdir -p build/%s" % libdir) - os.system("cp -p vespa_ann_benchmark.*.so build/%s" % libdir) + subprocess.run(["mkdir", "-p", "build/%s" % libdir]) + subprocess.run(["cp", "-p", "vespa_ann_benchmark.*.so build/%s" % libdir]) setup( name="vespa_ann_benchmark", |