Skip to content
Merged
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
21 changes: 18 additions & 3 deletions pymake/pymake.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import shutil
import sys
import time
from zipfile import ZipFile

from .config import __description__
from .pymake_base import main
Expand Down Expand Up @@ -267,18 +268,32 @@ def compress_targets(self):
if self.verbose:
print(
"Appending files to existing "
+ f"zipfile '{zip_pth}'"
+ f"zipfile '{pl.Path(zip_pth).resolve()}'"
)
with ZipFile(
zip_pth,
mode="r",
) as zf:
available_file_paths = zf.namelist()
pop_list = []
for target in targets:
if target in available_file_paths:
pop_list.append(target)
for target in pop_list:
targets.remove(target)
else:
if self.verbose:
print(f"Deleting existing zipfile '{zip_pth}'")
print(
"Deleting existing zipfile "
+ f"'{pl.Path(zip_pth).resolve()}'"
)
os.remove(zip_pth)

# print a message describing the zip process
if self.verbose:
print(
f"Compressing files in '{appdir}' "
+ f"directory to zip file '{zip_pth}'"
+ f"directory to zip file '{pl.Path(zip_pth).resolve()}'"
)
for idx, target in enumerate(targets):
print(
Expand Down
3 changes: 0 additions & 3 deletions pymake/utils/_compiler_switches.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ def _get_fortran_flags(
"fpe:0",
"traceback",
"nologo",
"Qdiag-disable:7416",
"Qdiag-disable:7025",
"Qdiag-disable:5268",
]
if debug:
flags += ["debug:full", "Zi"]
Expand Down