Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Sep 19, 2024
1 parent 40c39df commit 70591b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions photon-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ nativeUtils {
def getPythonIncludePath = {
def pythonexe = project.findProperty('pythonExecutable') ?: 'python3'

File.createTempFile("temp",".py").with {
write "from sysconfig import get_paths as gp; print(gp()['include'])"
File.createTempFile("temp",".py").with { f ->
f.write "from sysconfig import get_paths as gp; print(gp()['include'])"

def stdout = new ByteArrayOutputStream()
exec {
commandLine pythonexe, '-c', 'from sysconfig import get_paths as gp; print(gp()["include"])'
commandLine pythonexe, f.absolutePath
standardOutput = stdout
}
def ret = stdout.toString().trim();
Expand Down

0 comments on commit 70591b3

Please sign in to comment.