Skip to content

Commit

Permalink
Download so files to .local/lib on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Feb 1, 2024
1 parent 1eb65b0 commit 3de19d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curl_cffi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
elif uname.system == "Darwin":
libdir = "/Users/runner/work/_temp/install/lib"
else:
libdir = "/usr/local/lib"
libdir = os.path.expanduser("~/.local/lib")


ffibuilder.set_source(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def download_so():
so_name = "libcurl-impersonate-chrome.4.dylib"
else:
sysname = "linux-gnu"
libdir = "/usr/local/lib"
libdir = os.path.expanduser("~/.local/lib")
so_name = "libcurl-impersonate-chrome.so"

if (Path(libdir) / so_name).exists():
Expand Down

0 comments on commit 3de19d8

Please sign in to comment.