Adds `name` to CIBW_ENVIRONMENT_PASS_LINUX if required to be available when building wheel with cibuildwheel.
(name)
| 340 | return |
| 341 | |
| 342 | def env_pass(name): |
| 343 | ''' |
| 344 | Adds `name` to CIBW_ENVIRONMENT_PASS_LINUX if required to be available |
| 345 | when building wheel with cibuildwheel. |
| 346 | ''' |
| 347 | if platform.system() == 'Linux': |
| 348 | v = env_extra.get('CIBW_ENVIRONMENT_PASS_LINUX', '') |
| 349 | if v: |
| 350 | v += ' ' |
| 351 | v += name |
| 352 | env_extra['CIBW_ENVIRONMENT_PASS_LINUX'] = v |
| 353 | |
| 354 | def env_set(name, value, pass_=False): |
| 355 | assert isinstance( value, str) |