Skip to content

Commit

Permalink
Build wheel for sdist downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzchen committed Jul 11, 2023
1 parent d336ea8 commit a7f73fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ def addPackage(zf, name, path, orig, distInfo=False):
addPackage(zf, name, "**\\*", workdir)

for name, url in wheels[1].items():
download(url, "..\\" + name + ".whl")
if url.endswith(".tar.gz"):
download(url, "..\\" + name + ".tar.gz")
subprocess.call([sys.executable, "-m", "pip", "wheel",
"--no-deps", "..\\" + name + ".tar.gz"])
shutil.move(glob.glob("*.whl")[0], "..\\" + name + ".whl")
else:
download(url, "..\\" + name + ".whl")
print("COPY", name, flush=True)
with zipfile.ZipFile("..\\" + name + ".whl") as zf2:
if name == "pywin32":
Expand Down

0 comments on commit a7f73fa

Please sign in to comment.