Skip to content

Commit

Permalink
use env var
Browse files Browse the repository at this point in the history
  • Loading branch information
synodriver committed Mar 26, 2024
1 parent 2989469 commit 1ae089b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheel_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_ARCHS_WINDOWS: "AMD64 x86"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_CONFIG_SETTINGS: "--use-cython --use-cffi"
CIBW_ENVIRONMENT: USE-CYTHON="1" USE-CFFI="1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def has_option(name: str) -> bool:
if name in sys.argv[1:]:
sys.argv.remove(name)
return True
name = name.strip("-").upper()
if os.environ.get(name, None) is not None:
return True
return False


Expand Down

0 comments on commit 1ae089b

Please sign in to comment.