Skip to content

Commit

Permalink
Merge branch 'add-dockerfile' of https://github.com/arjxn-py/hugo-pyt…
Browse files Browse the repository at this point in the history
…hon-distributions into add-dockerfile
  • Loading branch information
arjxn-py committed Jul 1, 2024
2 parents ef4e7a0 + 0a46519 commit a281bde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def run(self):
# Build a static binary on Windows to avoid missing DLLs from MinGW,
# i.e., libgcc_s_seh-1.dll, libstdc++-6.dll, etc.
BUILD_STATIC = (
os.environ.get("GOOS") == "windows" or
sys.platform == "win32" or
"linux-musl" in os.environ.get("CC", "") or
"linux-musl" in os.environ.get("CXX", "")
os.environ.get("GOOS") == "windows"
or sys.platform == "win32"
or "linux-musl" in os.environ.get("CC", "")
or "linux-musl" in os.environ.get("CXX", "")
)
if BUILD_STATIC:
ldflags.append("-extldflags '-static'")
Expand Down

0 comments on commit a281bde

Please sign in to comment.