spyder: 6.1.0a2 -> 6.1.0 (#448327)

This commit is contained in:
kirillrdy
2025-10-04 20:37:26 +00:00
committed by GitHub
3 changed files with 13 additions and 12 deletions
@@ -34,14 +34,14 @@
buildPythonPackage rec {
pname = "spyder-kernels";
version = "3.1.0b1";
version = "3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "spyder-ide";
repo = "spyder-kernels";
tag = "v${version}";
hash = "sha256-bYpNWE6KHDD9CkDmTDIX3gZumLOhAyxITCGyWuSU2+o=";
hash = "sha256-FH4n1FsVN3D9WdDvxsrD6FBJiZl+ec/CJFOhs9IjUwI=";
};
build-system = [ setuptools ];
@@ -37,6 +37,7 @@
pyls-spyder,
pyopengl,
python-lsp-black,
python-lsp-ruff,
python-lsp-server,
pyuca,
pyzmq,
@@ -58,12 +59,12 @@
buildPythonPackage rec {
pname = "spyder";
version = "6.1.0a2";
version = "6.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-KbGfG9T3XkYXntIQx325mYb0Bh8c0idb+25awFlWD9s=";
hash = "sha256-UgDGJJuwNzB0VfAMgGM/UIhNarQ6da18XKE9JGJXRjY=";
};
patches = [ ./dont-clear-pythonpath.patch ];
@@ -106,6 +107,7 @@ buildPythonPackage rec {
pyopengl
pyqtwebengine
python-lsp-black
python-lsp-ruff
python-lsp-server
pyuca
pyzmq
@@ -1,21 +1,20 @@
diff --git a/spyder/app/start.py b/spyder/app/start.py
index ad9f2b8d0..442b4fc46 100644
index 3f225a164..10e6017b1 100644
--- a/spyder/app/start.py
+++ b/spyder/app/start.py
@@ -6,16 +6,8 @@
# (see spyder/__init__.py for details)
# -----------------------------------------------------------------------------
@@ -9,15 +9,6 @@
import os
import sys
-# Remove PYTHONPATH paths from sys.path before other imports to protect against
-# shadowed standard libraries.
import os
import sys
-if os.environ.get('PYTHONPATH'):
- for path in os.environ['PYTHONPATH'].split(os.pathsep):
- try:
- sys.path.remove(path.rstrip(os.sep))
- except ValueError:
- pass
-
# Remove PYTHONEXECUTABLE. See spyder-ide/spyder#24743
os.environ.pop("PYTHONEXECUTABLE", None)
# Standard library imports
import ctypes