Skip to content

Commit

Permalink
Merge pull request #3976 from bruntib/pypi_package_fix
Browse files Browse the repository at this point in the history
[bugfix] Include platform to `ldlogger.so` path
  • Loading branch information
bruntib authored Sep 25, 2023
2 parents 35792f1 + dd91755 commit fc04781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

import os
import platform
import setuptools
import subprocess
import sys
Expand Down Expand Up @@ -102,7 +103,7 @@ def init_packages():

class BuildExt(build_ext):
def get_ext_filename(self, ext_name):
return f"{os.path.join(*ext_name.split('.'))}.so"
return os.path.join(platform.uname().machine, f"{ext_name}.so")

def build_extension(self, ext):
if sys.platform == "linux":
Expand Down

0 comments on commit fc04781

Please sign in to comment.