File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,22 @@ before_install:
11
11
circle :
12
12
environment :
13
13
PATH : /opt/python/$<MANYLINUX_PYTHON>/bin:$<PATH>
14
- SETUP_CMAKE_ARGS : -DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl '-DCMAKE_JOB_POOLS:STRING=compile=4;link=3' -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link
15
- # Required to build cryptography wheel from source for cp37-cp37 when using manylinux-x86
16
- CFLAGS : -I/usr/local/ssl/include -L/usr/local/ssl/lib
14
+ SETUP_CMAKE_ARGS : -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link '-DCMAKE_JOB_POOLS:STRING=compile=4;link=3'
15
+ commands :
16
+ - python : |
17
+ import ci, os
18
+ image_name=os.environ["DEFAULT_DOCKCROSS_IMAGE"].split(":")[0].split("/")[1]
19
+ print("image_name [%s]" % image_name)
20
+ arch=image_name.split("-")[1]
21
+ print("arch [%s]" % arch)
22
+ # CFLAGS
23
+ if arch == "x86":
24
+ # Required to build cryptography wheel from source for cp37-cp37 when using manylinux-x86
25
+ os.environ["CFLAGS"] = "-I/usr/local/ssl/include -L/usr/local/ssl/lib"
26
+ # SETUP_CMAKE_ARGS
27
+ if arch in ["x86", "x84"]:
28
+ os.environ["SETUP_CMAKE_ARGS"] = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl " + os.environ["SETUP_CMAKE_ARGS"]
29
+ ci.driver.Driver.save_env(os.environ)
17
30
18
31
travis :
19
32
osx :
You can’t perform that action at this time.
0 commit comments