Skip to content

Commit 40f0591

Browse files
committed
setup.py: switch to out of tree builds.
libusb 1.0.25 added support for out of tree builds.
1 parent 8042f87 commit 40f0591

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ def run(self):
8686
build_lib = ROOT_DIR / Path(build_py.get_package_dir(PACKAGE_NAME)).parent
8787
else:
8888
build_lib = Path(os.path.abspath(self.build_lib))
89-
# build_temp = Path(os.path.abspath(self.build_temp))
9089

91-
# Build in-tree for the time being. libusb commit 1001cb5 adds support for out of tree builds, but
92-
# this is not yet supported in an existing release. Once libusb version 1.0.25 is released, we can
93-
# build out of tree.
94-
build_temp = LIBUSB_DIR
90+
# Build out of tree. Requires libusb commit 1001cb5 which adds support for out of tree builds, present
91+
# in libusb 1.0.25 and later.
92+
build_temp = Path(os.path.abspath(self.build_temp))
9593

9694
print(f"build_temp = {build_temp}")
9795
print(f"build_lib = {build_lib}")

0 commit comments

Comments
 (0)