Skip to content

Commit c1473da

Browse files
committed
Fix invalid 'mysql-vendor' folder copy
1 parent 1829fbb commit c1473da

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/cpy_distutils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _get_posix_openssl_libs(self):
310310
return openssl_libs
311311

312312
def _copy_vendor_libraries(self):
313-
if not self.with_mysql_capi:
313+
if not self.with_mysql_capi or self.distribution.data_files:
314314
return
315315

316316
data_files = []
@@ -342,10 +342,7 @@ def _copy_vendor_libraries(self):
342342
log.info("copying {0} -> {1}".format(src, dst))
343343
shutil.copy(src, dst)
344344
# Add data_files to distribution
345-
self.distribution.data_files = [(
346-
os.path.join(get_python_lib(), vendor_folder),
347-
data_files
348-
)]
345+
self.distribution.data_files = [(vendor_folder, data_files)]
349346

350347
def _finalize_connector_c(self, connc_loc):
351348
"""Finalize the --with-connector-c command line argument

0 commit comments

Comments
 (0)