diff --git a/.github/workflows/test-windows.yaml b/.github/workflows/test-windows.yaml index 40390cfe..9a0d6bcb 100644 --- a/.github/workflows/test-windows.yaml +++ b/.github/workflows/test-windows.yaml @@ -67,7 +67,7 @@ jobs: run: pip install numpy - name: Install code - run: pip install --no-deps -e . --global-option="build_ext" --global-option="--use-system-fitsio" + run: pip install --no-deps -e . - name: test run: | diff --git a/setup.py b/setup.py index f7fcc237..f5c20e17 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ import shutil -if "--use-system-fitsio" in sys.argv: +if os.name == 'nt' or "--use-system-fitsio" in sys.argv: del sys.argv[sys.argv.index("--use-system-fitsio")] USE_SYSTEM_FITSIO = True else: