Skip to content

Commit e934f6a

Browse files
committed
Support 24.0 in graalpy-virtualenv-seeder
1 parent 6430fab commit e934f6a

File tree

1 file changed

+9
-0
lines changed
  • graalpy_virtualenv_seeder/graalpy_virtualenv_seeder

1 file changed

+9
-0
lines changed

graalpy_virtualenv_seeder/graalpy_virtualenv_seeder/graalpy.py

+9
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ def sources(cls, interpreter):
100100
def _shared_libs(cls, python_dir):
101101
raise NotImplementedError
102102

103+
def set_pyenv_cfg(self):
104+
super().set_pyenv_cfg()
105+
# GraalPy 24.0 and older had home without the bin
106+
version = self.interpreter.version_info
107+
if version.major == 3 and version.minor <= 10: # noqa: PLR2004
108+
home = Path(self.pyenv_cfg["home"])
109+
if home.name == "bin":
110+
self.pyenv_cfg["home"] = str(home.parent)
111+
103112

104113
class GraalPyPosix(GraalPy, PosixSupports):
105114
@classmethod

0 commit comments

Comments
 (0)