@@ -30,7 +30,7 @@ class EmbeddedPythonCore(ConanFile):
3030 exports_sources = "embedded_python_tools.py" , "embedded_python-core.cmake"
3131
3232 def validate (self ):
33- minimum_python = "3.9.8 "
33+ minimum_python = "3.11.5 "
3434 if self .pyversion < minimum_python :
3535 raise ConanInvalidConfiguration (f"Minimum supported Python version is { minimum_python } " )
3636
@@ -51,26 +51,19 @@ def requirements(self):
5151 if self .settings .os == "Windows" :
5252 return # on Windows, we download a binary, so we don't need anything else
5353
54- self .requires ("sqlite3/3.42.0 " )
54+ self .requires ("sqlite3/3.45.3 " )
5555 self .requires ("bzip2/1.0.8" )
56- self .requires ("xz_utils/5.4.2 " )
56+ self .requires ("xz_utils/5.4.5 " )
5757 self .requires ("zlib/[>=1.2.11 <2]" )
58+ self .requires ("openssl/[>=3 <4]" )
5859 if self .settings .os == "Linux" :
5960 self .requires ("libffi/3.4.4" )
6061 self .requires ("libuuid/1.0.3" )
61- if self .pyversion < "3.8" :
62- self .requires ("mpdecimal/2.4.2" )
63- else :
64- self .requires ("mpdecimal/2.5.0" )
65-
66- if self .pyversion >= scm .Version ("3.11.0" ):
67- self .requires ("openssl/[>=3 <4]" )
68- else :
69- self .requires ("openssl/1.1.1w" )
62+ self .requires ("mpdecimal/2.5.1" )
7063
7164 @property
7265 def pyversion (self ):
73- """Full Python version that we want to package, e.g. 3.11.3 """
66+ """Full Python version that we want to package, e.g. 3.11.5 """
7467 return scm .Version (self .options .version )
7568
7669 @property
@@ -221,13 +214,9 @@ def _zip_stdlib(self, prefix):
221214 for pyc_file in (pathlib .Path (root , f ) for f in file_names if f .endswith (".pyc" )):
222215 zf .write (pyc_file , arcname = str (pyc_file .relative_to (lib )))
223216
224- def is_landmark (filepath ):
225- """Older Python version require `os.py(c)` to use as a landmark for the stdlib"""
226- return self .pyversion < "3.11.0" and filepath .name == "os.pyc"
227-
228217 # Delete everything that we can in `lib`: the `.zip` takes over
229218 for path in lib .iterdir ():
230- if path .is_file () and not is_landmark ( path ) :
219+ if path .is_file ():
231220 path .unlink ()
232221 elif path .is_dir () and path .name not in keep_lib_dirs :
233222 shutil .rmtree (path )
0 commit comments