Skip to content

Commit 16c949b

Browse files
committed
Fix setup.py for upload to PyPI and exclude MSVCRT140.dll from wheels
1 parent 7677749 commit 16c949b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class DependencyWalker(object):
7272
- The DLL_SEARCH_PATHS environment variable
7373
"""
7474

75+
EXCLUDE = ["MSVCRT140.dll"]
76+
7577
def __init__(self, dll_file: str, dependencies_exe="deps\\dependencies.exe", specials=dict()):
7678
if not os.path.exists(dependencies_exe):
7779
printf("dependencies.exe is required to find all dependency DLLs")
@@ -146,7 +148,9 @@ def _find_dll_abs_path(self, dll_name: str) -> Optional[str]:
146148

147149
def copy_to_target(self, target: str):
148150
for p in self.dependency_dll_files:
149-
if os.path.basename(p) in self._specials:
151+
if os.path.basename(p) in self.EXCLUDE:
152+
continue
153+
elif os.path.basename(p) in self._specials:
150154
t = os.path.join(target, *self._specials[os.path.basename(p)].split("/"), os.path.basename(p))
151155
d = os.path.dirname(t)
152156
if not os.path.exists(d):
@@ -192,6 +196,7 @@ def copy_to_target(self, target: str):
192196
url="https://github.com/RedFantom/python-gttk",
193197
download_url="https://github.com/RedFantom/python-gttk/releases",
194198
license="GNU GPLv3",
199+
long_description_content_type="text/markdown",
195200
long_description=read("README.md"),
196201
zip_safe=False,
197202
**kwargs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy