From dcf1e3ca6d3b86f6c94489cca407dfb7faf5b264 Mon Sep 17 00:00:00 2001
From: David Warnquist <davwa458@student.liu.se>
Date: Mon, 10 Jun 2024 22:44:09 +0200
Subject: [PATCH] refactor: got it running on windows and autocomplete
 instruction in readme

---
 README.md                                  | 5 +++++
 create-visual-studio-solution-python312.sh | 6 ++++++
 lib/pybind11                               | 2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 create-visual-studio-solution-python312.sh

diff --git a/README.md b/README.md
index 2fbb429fa..0d5af3754 100644
--- a/README.md
+++ b/README.md
@@ -99,6 +99,11 @@ Studio.
 3. Run `make` to build the project (use `make -j N` if you want to use N
    threads)
 
+# Create autocomplete stub
+Make sure you have mypy installed. Navigate to where your library.pyd/so is located then run:
+```terminal
+stubgen -m library -o .
+```
 
 # How to use the library with PyCharm
 
diff --git a/create-visual-studio-solution-python312.sh b/create-visual-studio-solution-python312.sh
new file mode 100644
index 000000000..6813c7803
--- /dev/null
+++ b/create-visual-studio-solution-python312.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+mkdir build
+cd build
+"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 17 2022" -DPYTHON_EXECUTABLE:FILEPATH="C:/Program Files/Python312/python.exe" ..
+"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --verbose
diff --git a/lib/pybind11 b/lib/pybind11
index 1a0ff4054..35ff42b56 160000
--- a/lib/pybind11
+++ b/lib/pybind11
@@ -1 +1 @@
-Subproject commit 1a0ff405498b6aac4b57cf0d95670010e5e37973
+Subproject commit 35ff42b56e9d34d9a944266eb25f2c899dbdfed7
-- 
GitLab