From b954ac6ccc5d1eff13e30d5cf76d806de8254574 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sun, 10 Apr 2022 21:51:18 -0700 Subject: [PATCH] Attempt to hint to cmake what python install to use correctly Should fix my linux building issue? --- .github/workflows/python-package.yml | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3a74e4a..856b369 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -49,8 +49,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - #os: [ macos-latest, windows-latest, ubuntu-latest ] - os: [ macos-11, windows-latest ] + os: [ macos-11, windows-latest, ubuntu-latest ] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 73a1074..6c9179b 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ class CMakeBuild(build_ext): cmake_args = [ "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={}".format(extdir), "-Dpybind11_DIR={}".format(pybind11.get_cmake_dir()), - "-DPython_EXECUTABLE={}".format(sys.executable), + "-DPython_ROOT_DIR={}".format(os.path.dirname(sys.executable)), "-DQUICKTEX_VERSION_INFO={}".format(version), "-DCMAKE_BUILD_TYPE={}".format(cfg), # not used on MSVC, but no harm # clear cached make program binary, see https://github.com/pypa/setuptools/issues/2912