|
| 1 | +diff --git a/setup.py b/setup.py |
| 2 | +index 96563c1a..66312029 100644 |
| 3 | +--- a/setup.py |
| 4 | ++++ b/setup.py |
| 5 | +@@ -122,10 +122,15 @@ def remove_output(*sources: str) -> Generator[None, None, None]: |
| 6 | + with remove_output("pybind11/include", "pybind11/share"): |
| 7 | + # Generate the files if they are not present. |
| 8 | + with TemporaryDirectory() as tmpdir: |
| 9 | +- cmd = ["cmake", "-S", ".", "-B", tmpdir] + [ |
| 10 | ++ cmd = ["cmake", '-GVisual Studio 16 2019', "-S", ".", "-B", tmpdir] + [ |
| 11 | + "-DCMAKE_INSTALL_PREFIX=pybind11", |
| 12 | + "-DBUILD_TESTING=OFF", |
| 13 | + "-DPYBIND11_NOPYTHON=ON", |
| 14 | ++ '-DPYTHON_EXECUTABLE:FILEPATH='+os.environ.get("PYTHON",""), |
| 15 | ++ '-DPYTHON_LIBRARY:FILEPATH='+os.environ.get("PYTHON_LIBRARY",""), |
| 16 | ++ '-DPYTHON_INCLUDE_DIR:PATH='+os.environ.get("PREFIX","")+ '\include', |
| 17 | ++ # '-DCMAKE_INSTALL_PREFIX='+os.environ.get("LIBRARY_PREFIX",""), |
| 18 | ++ '-DCMAKE_PREFIX_PATH='+os.environ.get("LIBRARY_PREFIX",""), |
| 19 | + "-Dprefix_for_pc_file=${pcfiledir}/../../", |
| 20 | + ] |
| 21 | + if "CMAKE_ARGS" in os.environ: |
| 22 | + |
0 commit comments