@@ -30,7 +30,7 @@ class EmbeddedPythonCore(ConanFile):
30
30
exports_sources = "embedded_python_tools.py" , "embedded_python-core.cmake"
31
31
32
32
def validate (self ):
33
- minimum_python = "3.9.8 "
33
+ minimum_python = "3.11.5 "
34
34
if self .pyversion < minimum_python :
35
35
raise ConanInvalidConfiguration (f"Minimum supported Python version is { minimum_python } " )
36
36
@@ -51,26 +51,19 @@ def requirements(self):
51
51
if self .settings .os == "Windows" :
52
52
return # on Windows, we download a binary, so we don't need anything else
53
53
54
- self .requires ("sqlite3/3.42.0 " )
54
+ self .requires ("sqlite3/3.45.3 " )
55
55
self .requires ("bzip2/1.0.8" )
56
- self .requires ("xz_utils/5.4.2 " )
56
+ self .requires ("xz_utils/5.4.5 " )
57
57
self .requires ("zlib/[>=1.2.11 <2]" )
58
+ self .requires ("openssl/[>=3 <4]" )
58
59
if self .settings .os == "Linux" :
59
60
self .requires ("libffi/3.4.4" )
60
61
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" )
70
63
71
64
@property
72
65
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 """
74
67
return scm .Version (self .options .version )
75
68
76
69
@property
@@ -221,13 +214,9 @@ def _zip_stdlib(self, prefix):
221
214
for pyc_file in (pathlib .Path (root , f ) for f in file_names if f .endswith (".pyc" )):
222
215
zf .write (pyc_file , arcname = str (pyc_file .relative_to (lib )))
223
216
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
-
228
217
# Delete everything that we can in `lib`: the `.zip` takes over
229
218
for path in lib .iterdir ():
230
- if path .is_file () and not is_landmark ( path ) :
219
+ if path .is_file ():
231
220
path .unlink ()
232
221
elif path .is_dir () and path .name not in keep_lib_dirs :
233
222
shutil .rmtree (path )
0 commit comments