Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/python/grpcio_sleuth/grpc_sleuth/sleuth_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def main():
exit_code = sleuth_lib.run_sleuth(sys.argv[1:])
sys.exit(exit_code)


if __name__ == "__main__":
main()

14 changes: 8 additions & 6 deletions src/python/grpcio_sleuth/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def run(self):
# This makes the .so available during the extension build process.
build_lib_dest_dir = os.path.join(self.build_lib, "grpc_sleuth", "lib")
os.makedirs(build_lib_dest_dir, exist_ok=True)
shutil.copy(_SLEUTH_SO_SRC, os.path.join(build_lib_dest_dir, "libsleuth.so"))
shutil.copy(
_SLEUTH_SO_SRC, os.path.join(build_lib_dest_dir, "libsleuth.so")
)

# Add the library directory for the current build to find libsleuth.so during extension linking
for ext in self.extensions:
Expand Down Expand Up @@ -104,7 +106,7 @@ def run(self):
language="c++",
extra_compile_args=["-std=c++17"],
libraries=["sleuth"],
runtime_library_dirs=["$ORIGIN/lib"]
runtime_library_dirs=["$ORIGIN/lib"],
)
]

Expand All @@ -125,13 +127,13 @@ def run(self):
setup_requires=SETUP_REQUIRES,
ext_modules=extensions,
cmdclass={
'build_ext': custom_build_ext,
"build_ext": custom_build_ext,
},
entry_points={
'console_scripts': [
'grpc_sleuth=grpc_sleuth.sleuth_cli:main',
"console_scripts": [
"grpc_sleuth=grpc_sleuth.sleuth_cli:main",
],
},
package_data={'grpc_sleuth': ['lib/*.so']},
package_data={"grpc_sleuth": ["lib/*.so"]},
include_package_data=True,
)