Distutils takes care of linking with libpython
@@ -330,7 +330,6 @@ def _get_common_lib_ext(include_dir, share_lib_dir):
os.path.join("cocotb", "libs", "libgpilog"),
define_macros=[("GPILOG_EXPORTS", "")],
include_dirs=[include_dir],
- library_dirs=python_lib_dirs,
sources=libgpilog_sources,
extra_link_args=_extra_link_args(lib_name="libgpilog", rpaths=["$ORIGIN"]),
extra_compile_args=_extra_cxx_compile_args,
@@ -348,8 +347,7 @@ def _get_common_lib_ext(include_dir, share_lib_dir):
os.path.join("cocotb", "libs", "libcocotb"),
define_macros=[("COCOTB_EMBED_EXPORTS", ""), ("PYTHON_SO_LIB", _get_python_lib())],
include_dirs=[include_dir],
- libraries=[_get_python_lib_link(), "gpilog", "cocotbutils"],
- library_dirs=python_lib_dirs,
+ libraries=["gpilog", "cocotbutils"],
sources=libcocotb_sources,
extra_link_args=_extra_link_args(lib_name="libcocotb", rpaths=["$ORIGIN"] + python_lib_dirs),
extra_compile_args=_extra_cxx_compile_args,
@@ -386,7 +384,6 @@ def _get_common_lib_ext(include_dir, share_lib_dir):
os.path.join("cocotb", "simulator"),
include_dirs=[include_dir],
libraries=["cocotbutils", "gpilog", "gpi"],
- library_dirs=python_lib_dirs,
sources=simulator_sources,
extra_compile_args=_extra_cxx_compile_args,
extra_link_args=_extra_link_args(rpaths=["$ORIGIN/libs"]),
