Skip to content

Commit

Permalink
CI: Idk Pythonk
Browse files Browse the repository at this point in the history
  • Loading branch information
DatCaptainHorse committed Aug 14, 2024
1 parent 298d14e commit 6ecb354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cmake-windows-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
- name: Install Python
run: |
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe" -OutFile "python-3.12.4-amd64.exe"
Start-Process -Wait -FilePath "python-3.12.4-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1"
Start-Process -Wait -FilePath "python-3.12.4-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 Include_dev=1 Include_debug=1 Include_test=0 TargetDir=C:\Python312"
Remove-Item -Path "python-3.12.4-amd64.exe"
$env:Path = "C:\Python312;C:\Python312\Scripts;$env:Path"
$env:PYTHON_EXECUTABLE = "C:\Python312\python.exe"
$env:PYTHON_INCLUDE_DIR = "C:\Python312\include"
$env:PYTHON_LIBRARY = "C:\Python312\libs\python312.lib"
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
Expand Down
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
#find_package(glaze REQUIRED)
find_package(glfw3 REQUIRED)
find_package(Python 3.12 COMPONENTS Interpreter Development REQUIRED)

# Add Python_LIBRARIES to everything if WIN32, idk
if (WIN32)
link_libraries(${Python_LIBRARIES})
endif()

find_package(nanobind CONFIG REQUIRED)
find_package(libhv REQUIRED)
find_package(libsndfile REQUIRED)
Expand Down

0 comments on commit 6ecb354

Please sign in to comment.