Skip to content

Commit

Permalink
mebbe
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Sep 26, 2024
1 parent 35b9fc5 commit 98bc032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,15 @@ jobs:
distribution: temurin

- run: git fetch --tags --force
- run: python3 -c "from sysconfig import get_paths as gp; print(gp())"
- run: python${{ matrix.python_version }} -c "from sysconfig import get_paths as gp; print(gp())"

- run: ./gradlew photon-lib:tasks -i -PpythonExecutable=python${{ matrix.python_version }}
- run: ./gradlew photon-lib:tasks -i -PpythonExecutable="python${{ matrix.python_version }}""
- run: |
chmod +x gradlew
./gradlew photon-lib:installPhotonlibpyNative -PpythonExecutable=python${{ matrix.python_version }}
./gradlew photon-lib:installPhotonlibpyNative -PpythonExecutable="python${{ matrix.python_version }}""
- run: find .
working-directory: ./photon-lib/py

- name: Install dependencies
working-directory: ./photon-lib/py
Expand Down Expand Up @@ -246,7 +249,7 @@ jobs:
working-directory: ./photon-lib/py
# disable isolation so we can run stubgen (ew but w/e)
run: |
/build/venv/bin/cross-python -m build -swn
SKIP_PYI=1 /build/venv/bin/cross-python -m build -swn
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
4 changes: 3 additions & 1 deletion photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def finalize_options(self):


script_path = os.path.dirname(os.path.realpath(__file__))
if not os.path.exists(f"{script_path}/photonlibpy/lib/_photonlibpy.pyi"):
if not os.path.exists(
f"{script_path}/photonlibpy/lib/_photonlibpy.pyi"
) and not os.getenv("SKIP_PYI"):
print("Generating typehints")
try:
from create_photonlib_pyi import write_stubgen
Expand Down

0 comments on commit 98bc032

Please sign in to comment.