Skip to content

Commit 19055a9

Browse files
committed
Remove openssl_variant workaround
We no longer have any use for it.
1 parent 5564fb5 commit 19055a9

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.8.0 | In development
4+
5+
- The `openssl_variant` is now obsolete. The flag is still there for backwards compatibility but it no longer does anything.
6+
37
## v1.7.0 | 2023-06-22
48

59
- Recipe build performance and Conan cache usage have been improved further (on top of the improvements in v1.6.0) by optimizing the way licenses are gathered. The recipe now takes advantage of a new feature in `pip-license` v4.2.0 to gather licenses from an external environment. This way, we don't need to re-install packages just to gather licenses, thus cutting both build time and Conan cache usage in half.

conanfile.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# noinspection PyUnresolvedReferences
1111
class EmbeddedPython(ConanFile):
1212
name = "embedded_python"
13-
version = "1.7.0" # of the Conan package, `options.version` is the Python version
13+
version = "1.8.0" # of the Conan package, `options.version` is the Python version
1414
license = "PSFL"
1515
description = "Embedded distribution of Python"
1616
topics = "embedded", "python"
@@ -24,7 +24,7 @@ class EmbeddedPython(ConanFile):
2424
"pip_licenses_version": ["ANY"],
2525
"setuptools_version": ["ANY"],
2626
"wheel_version": ["ANY"],
27-
"openssl_variant": ["lowercase", "uppercase"], # see explanation in `build_requirements()`
27+
"openssl_variant": ["lowercase", "uppercase"], # OBSOLETE: only here for compatibility
2828
}
2929
default_options = {
3030
"packages": None,
@@ -37,11 +37,10 @@ class EmbeddedPython(ConanFile):
3737
short_paths = True # some of the pip packages go over the 260 char path limit on Windows
3838

3939
def requirements(self):
40-
self.requires(f"embedded_python-core/1.1.0@{self.user}/{self.channel}")
40+
self.requires(f"embedded_python-core/1.2.0@{self.user}/{self.channel}")
4141

4242
def configure(self):
4343
self.options["embedded_python-core"].version = self.options.version
44-
self.options["embedded_python-core"].openssl_variant = self.options.openssl_variant
4544

4645
@property
4746
def pyversion(self):

core/conanfile.py

+3-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# noinspection PyUnresolvedReferences
1313
class EmbeddedPythonCore(ConanFile):
1414
name = "embedded_python-core"
15-
version = "1.1.0" # of the Conan package, `options.version` is the Python version
15+
version = "1.2.0" # of the Conan package, `options.version` is the Python version
1616
license = "PSFL"
1717
description = "The core embedded Python (no extra pip packages)"
1818
topics = "embedded", "python"
@@ -21,11 +21,9 @@ class EmbeddedPythonCore(ConanFile):
2121
settings = "os", "compiler", "build_type", "arch"
2222
options = {
2323
"version": ["ANY"],
24-
"openssl_variant": ["lowercase", "uppercase"], # see explanation in `build_requirements()`
2524
"zip_stdlib": ["no", "stored", "deflated"],
2625
}
2726
default_options = {
28-
"openssl_variant": "lowercase",
2927
"zip_stdlib": "stored",
3028
}
3129
exports_sources = "embedded_python_tools.py", "embedded_python.cmake"
@@ -64,14 +62,7 @@ def requirements(self):
6462
else:
6563
self.requires("mpdecimal/2.5.0")
6664

67-
# The pre-conan-center-index version of `openssl` was capitalized as `OpenSSL`.
68-
# Both versions can't live in the same Conan cache so we need this compatibility
69-
# option to pick the available version. The cache case-sensitivity issue should
70-
# be solved in Conan 2.0, but we need this for now.
71-
if self.options.openssl_variant == "lowercase":
72-
self.requires("openssl/1.1.1k")
73-
else:
74-
self.requires("OpenSSL/1.1.1m")
65+
self.requires("openssl/1.1.1k")
7566

7667
@property
7768
def pyversion(self):
@@ -103,8 +94,7 @@ def generate(self):
10394
files.get(self, url, strip_root=True)
10495

10596
tc = AutotoolsToolchain(self, prefix=pathlib.Path(self.package_folder, "embedded_python"))
106-
openssl_pck = "openssl" if self.options.openssl_variant == "lowercase" else "OpenSSL"
107-
openssl_path = self.dependencies[openssl_pck].package_folder
97+
openssl_path = self.dependencies["openssl"].package_folder
10898
tc.configure_args += [
10999
"--enable-shared",
110100
"--without-static-libpython",

0 commit comments

Comments
 (0)