Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-4842: Upping minimum supported Python version to 3.9

Ryan Kurtz6b9cf67ab32c
diff --git a/Ghidra/Debug/Debugger-rmi-trace/DEVNOTES.txt b/Ghidra/Debug/Debugger-rmi-trace/DEVNOTES.txt
index 9815847397..cd52400b29 100644
--- a/Ghidra/Debug/Debugger-rmi-trace/DEVNOTES.txt
+++ b/Ghidra/Debug/Debugger-rmi-trace/DEVNOTES.txt
@@ -212,11 +212,11 @@ import sys
print(sys.version)
```
-Suppose they get `3.8.10`.
-They'd then take the major and minor numbers to invoke `python3.8` directly:
+Suppose they get `3.9.19`.
+They'd then take the major and minor numbers to invoke `python3.9` directly:
```bash
-python3.8 -m pip install ...
+python3.9 -m pip install ...
```
A fancy way to just have gdb print the python command for you is:
diff --git a/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.html b/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.html
index d7da3194cc..288fb4200e 100644
--- a/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.html
+++ b/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.html
@@ -301,8 +301,8 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb5-1"><a href="
class="sourceCode gdb"><code class="sourceCode gdbsyntax"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>(gdb) python-interactive</span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>&gt;&gt;&gt; import sys</span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a>&gt;&gt;&gt; sys.version</span></code></pre></div>
-<p>Suppose this identifies version 3.7. Retry the installation commands
-using <code>python3.7 -m pip ...</code>. If you have multiple copies of
+<p>Suppose this identifies version 3.9. Retry the installation commands
+using <code>python3.9 -m pip ...</code>. If you have multiple copies of
the same version in different locations, you may need to invoke
<code>python3</code> using its complete path.</p>
<p>In the worst case, copy the Python source over and add it to your
diff --git a/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.md b/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.md
index 0aa6155984..d9461996a9 100644
--- a/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.md
+++ b/GhidraDocs/GhidraClass/Debugger/B1-RemoteTargets.md
@@ -145,8 +145,8 @@ Or, inside `gdb`:
>>> sys.version
```
-Suppose this identifies version 3.7.
-Retry the installation commands using `python3.7 -m pip ...`.
+Suppose this identifies version 3.9.
+Retry the installation commands using `python3.9 -m pip ...`.
If you have multiple copies of the same version in different locations, you may need to invoke `python3` using its complete path.
In the worst case, copy the Python source over and add it to your `PYTHONPATH`.
diff --git a/GhidraDocs/InstallationGuide.html b/GhidraDocs/InstallationGuide.html
index b6ef324e20..7cbfd2e0c4 100644
--- a/GhidraDocs/InstallationGuide.html
+++ b/GhidraDocs/InstallationGuide.html
@@ -98,7 +98,7 @@ Ghidra team if you have a specific need.</p></blockquote>
</li>
</ul>
</ul>
- <li>Python3 (3.7 to 3.12; for Debugger support)</li>
+ <li>Python3 (3.9 to 3.12; for Debugger support)</li>
<ul>
<li>This is available from <a href="https://python.org">Python.org</a> or most operating system's
app stores or software repositories. For Linux it is recommended that the system's package
@@ -396,7 +396,7 @@ existing pre-built native binaries in the <i>os/&lt;platform&gt;/</i> subdirecto
<h2><a name="DebuggerPython"></a>Installing the Debugger's Python Dependencies</h2>
<p>The Debugger now uses Python to connect to the host platform's native debuggers. This requires
-Python3 (3.7 to 3.12) and some additional packages. These packages are included in the distribution,
+Python3 (3.9 to 3.12) and some additional packages. These packages are included in the distribution,
but you may still install them from PyPI if you prefer:</p>
<ul>
<li>psutil</li>
diff --git a/README.md b/README.md
index 6feb6a0b55..f6fa15ac8e 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@ To create the latest development build for your platform from this source reposi
##### Install build tools:
* [JDK 21 64-bit][jdk]
* [Gradle 8.5+][gradle] (or provided Gradle wrapper if Internet connection is available)
-* [Python3][python3] (version 3.7 to 3.12) with bundled pip
+* [Python3][python3] (version 3.9 to 3.12) with bundled pip
* make, gcc, and g++ (Linux/macOS-only)
* [Microsoft Visual Studio][vs] 2017+ or [Microsoft C++ Build Tools][vcbuildtools] with the
following components installed (Windows-only):
diff --git a/build.gradle b/build.gradle
index 63c3f48280..e2378d5c16 100644
--- a/build.gradle
+++ b/build.gradle
@@ -49,7 +49,7 @@ if ("32".equals(System.getProperty("sun.arch.data.model"))) {
/***************************************************************************************
* Identify supported Python command
***************************************************************************************/
-project.ext.SUPPORTED_PY_VERSIONS = ['3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
+project.ext.SUPPORTED_PY_VERSIONS = ['3.12', '3.11', '3.10', '3.9']
project.ext.PYTHON3 = findPython3()
project.ext.PYTHON_DEPS = new HashSet<String>()
@@ -215,10 +215,10 @@ def findPython3() {
}
}
// Don't fail until task execution. Just let "python3" fail.
- // Force use of non-existent python3.7 instead of unsupported python version
+ // Force use of non-existent python3.9 instead of unsupported python version
// which should fail if a python build is performed.
println("Warning: Python3 command not found (required for build)")
- return 'python3.7'
+ return 'python3.9'
}
/******************************************************************************************