Skip to content

Commit

Permalink
Build Windows dlls inside
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Jun 25, 2024
1 parent 02fa7eb commit d1df074
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL := bash

# this is the upstream libcurl-impersonate version
VERSION := 0.7.0b5
VERSION := 0.7.0b6
CURL_VERSION := curl-8_7_1

$(CURL_VERSION):
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "curl_cffi"
version = "0.7.0b5"
version = "0.7.0b6"
authors = [{ name = "Yifei Kong", email = "[email protected]" }]
description = "libcurl ffi bindings for Python, with impersonation support."
license = { file = "LICENSE" }
Expand Down Expand Up @@ -105,6 +105,10 @@ environment-pass = ["LD_LIBRARY_PATH"]
[tool.cibuildwheel.macos]
before-all = "gmake preprocess"

[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --add-path ./lib64;./lib32 -w {dest_dir} {wheel}"


[tool.pytest.ini_options]
# pythonpath = [ "." ]
Expand Down
5 changes: 1 addition & 4 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from cffi import FFI

# this is the upstream libcurl-impersonate version
__version__ = "0.7.0b5"
__version__ = "0.7.0b6"

tmpdir = None

Expand Down Expand Up @@ -69,9 +69,6 @@ def download_libcurl():
os.makedirs(arch["libdir"], exist_ok=True)
shutil.unpack_archive(file, arch["libdir"])

if arch["system"] == "Windows":
shutil.copy2(f"{arch['libdir']}/libcurl.dll", "curl_cffi")


def get_curl_archives():
if arch["system"] == "Linux" and arch.get("link_type") == "static":
Expand Down

0 comments on commit d1df074

Please sign in to comment.