depot/third_party/nixpkgs/pkgs/development/python-modules/gattlib/setup.patch
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

18 lines
463 B
Diff

diff --git a/setup.py b/setup.py
index 0825241..389a59e 100755
--- a/setup.py
+++ b/setup.py
@@ -11,12 +11,7 @@ extension_modules = []
def get_boost_version(out=None):
- if out is None:
- out = subprocess.check_output(
- r"ldconfig -p | grep -E 'libboost_python.*\.so '", shell=True)
-
- ver = os.path.splitext(out.split()[0][3:])[0].decode()
- return ver
+ return "@boost_version@"
def tests():
# case: python3-py3x.so