We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97e2b7 commit bbc6ae3Copy full SHA for bbc6ae3
scripts/build.py
@@ -12,8 +12,6 @@
12
# this is the upstream libcurl-impersonate version
13
__version__ = "0.8.0"
14
15
-tmpdir = None
16
-
17
18
def detect_arch():
19
with open(Path(__file__).parent.parent / "libs.json") as f:
@@ -38,8 +36,13 @@ def detect_arch():
38
36
arch["libdir"] = os.path.expanduser(arch["libdir"])
39
37
else:
40
global tmpdir
41
- tmpdir = tempfile.TemporaryDirectory()
42
- arch["libdir"] = tmpdir.name
+ if "CI" in os.environ:
+ tmpdir = "./tmplibdir"
+ os.mkdir(tmpdir)
+ arch["libdir"] = tmpdir
43
+ else:
44
+ tmpdir = tempfile.TemporaryDirectory()
45
+ arch["libdir"] = tmpdir.name
46
return arch
47
raise Exception(f"Unsupported arch: {uname}")
48
0 commit comments