Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Sep 17, 2024
1 parent 3e51153 commit 5dcc08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
- run: git fetch --tags --force

- name: Install RoboRIO Toolchain
run: ./gradlew installRoboRioToolchain
run: ./gradlew installRoboRioToolchain -PpythonExecutable=/build/venv/bin/cross-python
if: matrix.os.name == 'roborio'

- run: |
Expand Down
4 changes: 2 additions & 2 deletions photon-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ nativeUtils {
}

def getPythonIncludePath = {
def pythonexe = project.findProperty('pythonExecutable') ?: 'python3.10'
def pythonexe = project.findProperty('pythonExecutable') ?: 'python3'
def stdout = new ByteArrayOutputStream()
exec {
commandLine pythonexe, '-c', "from sysconfig import get_paths as gp; print(gp()[\"include\"])"
Expand All @@ -53,7 +53,7 @@ def getPythonIncludePath = {
}

def getPythonLibrarySuffix = {
def pythonexe = project.findProperty('pythonExecutable') ?: 'python3.10'
def pythonexe = project.findProperty('pythonExecutable') ?: 'python3'
def stdout = new ByteArrayOutputStream()
exec {
commandLine pythonexe, '-c', "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"
Expand Down

0 comments on commit 5dcc08d

Please sign in to comment.