Skip to content

Commit f650ba5

Browse files
committed
More stuff
1 parent 853dc94 commit f650ba5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cmake/yup_python.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function (yup_prepare_python_stdlib target_name python_tools_path output_variabl
5656
execute_process (
5757
COMMAND
5858
"${Python_EXECUTABLE}" "${python_tools_path}/ArchivePythonStdlib.py"
59-
-r "${python_root_path}" -o "${CMAKE_CURRENT_BINARY_DIR}" -M "${Python_VERSION_MAJOR}" -m "${Python_VERSION_MINOR}"
60-
-x "\"${ignored_library_patterns}\"" -v
59+
-v -r "${python_root_path}" -o "${CMAKE_CURRENT_BINARY_DIR}" -M "${Python_VERSION_MAJOR}" -m "${Python_VERSION_MINOR}"
60+
-x "\"${ignored_library_patterns}\""
6161
COMMAND_ECHO STDOUT
6262
COMMAND_ERROR_IS_FATAL ANY)
6363

python/tools/ArchivePythonStdlib.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def make_archive(file, directory, verbose=False):
2323
path = os.path.join(dirname, filename)
2424
archived_files.append((path, os.path.relpath(path, directory)))
2525

26+
print(f"Added to zip: {path}")
27+
2628
with zipfile.ZipFile(file, "w") as zf:
2729
for path, archive_path in sorted(archived_files):
2830
permission = 0o555 if os.access(path, os.X_OK) else 0o444
@@ -34,8 +36,8 @@ def make_archive(file, directory, verbose=False):
3436
with open(path, "rb") as fp:
3537
zf.writestr(zip_info, fp.read(), compress_type=zipfile.ZIP_DEFLATED, compresslevel=9)
3638

37-
if verbose:
38-
print(f"Added to zip: {archive_path}")
39+
#if verbose:
40+
# print(f"Added to zip: {archive_path}")
3941

4042

4143
if __name__ == "__main__":

0 commit comments

Comments
 (0)